2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00
exsist -> exist
This commit is contained in:
Oliver
2024-01-10 22:19:37 +11:00
committed by GitHub
parent ec9bff9be4
commit b5b6d75e23
6 changed files with 10 additions and 10 deletions

View File

@ -2472,7 +2472,7 @@ class ColorTheme(models.Model):
def get_color_themes_choices(cls):
"""Get all color themes from static folder."""
if not settings.STATIC_COLOR_THEMES_DIR.exists():
logger.error('Theme directory does not exsist')
logger.error('Theme directory does not exist')
return []
# Get files list from css/color-themes/ folder

View File

@ -655,9 +655,9 @@ class PluginSettingsApiTest(PluginMixin, InvenTreeAPITestCase):
self.assertIn("Plugin 'doesnotexist' not installed", str(response.data))
# Wrong key
url = reverse('api-plugin-setting-detail', kwargs={'plugin': 'sample', 'key': 'doesnotexsist'})
url = reverse('api-plugin-setting-detail', kwargs={'plugin': 'sample', 'key': 'doesnotexist'})
response = self.get(url, expected_code=404)
self.assertIn("Plugin 'sample' has no setting matching 'doesnotexsist'", str(response.data))
self.assertIn("Plugin 'sample' has no setting matching 'doesnotexist'", str(response.data))
def test_invalid_setting_key(self):
"""Test that an invalid setting key returns a 404."""