diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 069d0d3363..d820dfb716 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -36,7 +36,7 @@ def _is_true(x): # Determine if we are running in "test" mode e.g. "manage.py test" -TESTING = 'test' in sys. +TESTING = 'test' in sys.argv # Are enviroment variables manipulated by tests? Needs to be set by testing code TESTING_ENV = False