diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index e177f17d57..649ea6adfa 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -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 exists') return [] # Get files list from css/color-themes/ folder diff --git a/InvenTree/part/test_api.py b/InvenTree/part/test_api.py index fe334f6b9a..78ab67a9ef 100644 --- a/InvenTree/part/test_api.py +++ b/InvenTree/part/test_api.py @@ -80,7 +80,7 @@ class PartCategoryAPITest(InvenTreeAPITestCase): ({'parent': 1, 'cascade': False, 'depth': 1}, 3, 'Dont cascade even with depth=1 specified with parent'), ({'parent': 1, 'cascade': True, 'depth': 1}, 5, 'Cascade with depth=1 with parent'), ({'parent': 1, 'cascade': True, 'depth': 'abcdefg'}, 5, 'Cascade with invalid depth and parent'), - ({'parent': 42}, 8, 'Should return everything if parent_pk is not vaild'), + ({'parent': 42}, 8, 'Should return everything if parent_pk is not valid'), ({'parent': 'null', 'exclude_tree': 1, 'cascade': True}, 2, 'Should return everything from except tree with pk=1'), ({'parent': 'null', 'exclude_tree': 42, 'cascade': True}, 8, 'Should return everything because exclude_tree=42 is no valid pk'), ({'parent': 1, 'starred': True, 'cascade': True}, 2, 'Should return the starred categories for the current user within the pk=1 tree'), diff --git a/InvenTree/stock/test_api.py b/InvenTree/stock/test_api.py index 3c9dd6931d..0243aaa405 100644 --- a/InvenTree/stock/test_api.py +++ b/InvenTree/stock/test_api.py @@ -77,7 +77,7 @@ class StockLocationTest(StockAPITestCase): ({'parent': 1, 'cascade': False, 'depth': 1}, 2, 'Dont cascade even with depth=1 specified with parent'), ({'parent': 1, 'cascade': True, 'depth': 1}, 2, 'Cascade with depth=1 with parent'), ({'parent': 1, 'cascade': True, 'depth': 'abcdefg'}, 2, 'Cascade with invalid depth and parent'), - ({'parent': 42}, 8, 'Should return everything if parent_pk is not vaild'), + ({'parent': 42}, 8, 'Should return everything if parent_pk is not valid'), ({'parent': 'null', 'exclude_tree': 1, 'cascade': True}, 5, 'Should return everything except tree with pk=1'), ({'parent': 'null', 'exclude_tree': 42, 'cascade': True}, 8, 'Should return everything because exclude_tree=42 is no valid pk'), ]