2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 12:10:59 +00:00

Merge pull request #2991 from matmair/not-working-tests

Static test fixes
This commit is contained in:
Oliver
2022-05-20 20:46:28 +10:00
committed by GitHub
8 changed files with 78 additions and 27 deletions

View File

@ -1722,6 +1722,9 @@ class ColorTheme(models.Model):
@classmethod
def get_color_themes_choices(cls):
""" Get all color themes from static folder """
if settings.TESTING and not os.path.exists(settings.STATIC_COLOR_THEMES_DIR):
logger.error('Theme directory does not exsist')
return []
# Get files list from css/color-themes/ folder
files_list = []