From 96f7e70f9ebfea612766ecfd06576324d784f89c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 26 Feb 2019 14:24:50 +0100 Subject: [PATCH] enable always_eager when unittesting --- passbook/core/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/passbook/core/settings.py b/passbook/core/settings.py index 318844972..355b1e0b7 100644 --- a/passbook/core/settings.py +++ b/passbook/core/settings.py @@ -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