mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix codespell error
This commit is contained in:
parent
2897c6704d
commit
8569233181
@ -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
|
||||
|
@ -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'),
|
||||
|
@ -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'),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user