Force imports of stuff like mediagoblin.process_media which has tasks we need
This commit is contained in:
@@ -45,7 +45,7 @@ def test_setup_celery_from_config():
|
||||
assert isinstance(fake_celery_module.CELERYD_ETA_SCHEDULER_PRECISION, float)
|
||||
assert fake_celery_module.CELERY_RESULT_PERSISTENT is True
|
||||
assert fake_celery_module.CELERY_IMPORTS == [
|
||||
'foo.bar.baz', 'this.is.an.import']
|
||||
'foo.bar.baz', 'this.is.an.import', 'mediagoblin.process_media']
|
||||
assert fake_celery_module.CELERY_MONGODB_BACKEND_SETTINGS == {
|
||||
'database': 'mediagoblin'}
|
||||
assert fake_celery_module.CELERY_RESULT_BACKEND == 'mongodb'
|
||||
@@ -74,7 +74,7 @@ def test_setup_celery_from_config():
|
||||
assert isinstance(fake_celery_module.CELERYD_ETA_SCHEDULER_PRECISION, float)
|
||||
assert fake_celery_module.CELERY_RESULT_PERSISTENT is False
|
||||
assert fake_celery_module.CELERY_IMPORTS == [
|
||||
'baz.bar.foo', 'import.is.a.this']
|
||||
'baz.bar.foo', 'import.is.a.this', 'mediagoblin.process_media']
|
||||
assert fake_celery_module.CELERY_MONGODB_BACKEND_SETTINGS == {
|
||||
'database': 'captain_lollerskates',
|
||||
'host': 'mongodb.example.org',
|
||||
|
||||
Reference in New Issue
Block a user