mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
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:
parent
02247b067f
commit
3d532dae01
@ -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)
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user