Fix celery in tests

There's actually a better way to structure tests involving celery since
4.0, but that can wait for some time in the future.
This commit is contained in:
Basraah 2018-01-09 12:11:54 +10:00
parent 02247b067f
commit 3d532dae01
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ app = Celery('devauth')
# Using a string here means the worker don't have to serialize
# the configuration object to child processes.
app.config_from_object('django.conf:settings')
app.config_from_object('django.conf:settings', namespace='CELERY')
# Load task modules from all registered Django app configs.
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)

View File

@ -14,7 +14,7 @@ NOSE_ARGS = [
]
# Celery configuration
CELERY_ALWAYS_EAGER = True # Forces celery to run locally for testing
CELERY_TASK_ALWAYS_EAGER = True # Forces celery to run locally for testing
INSTALLED_APPS += [
'allianceauth.eveonline.autogroups',