enable always_eager when unittesting

This commit is contained in:
Jens Langhammer 2019-02-26 14:24:50 +01:00
parent ad96f7dbb8
commit 96f7e70f9e
1 changed files with 1 additions and 0 deletions

View File

@ -291,6 +291,7 @@ TEST_OUTPUT_FILE_NAME = 'unittest.xml'
if any('test' in arg for arg in sys.argv):
LOGGING = None
TEST = True
CELERY_TASK_ALWAYS_EAGER = True
_DISALLOWED_ITEMS = ['INSTALLED_APPS', 'MIDDLEWARE', 'AUTHENTICATION_BACKENDS']
# Load subapps's INSTALLED_APPS