I would like to access celery tasks synchronously during my Django tests, without having to run a celery worker. To achieve this, I specified CELERY_ALWAYS_EAGER=True in my .py settings, but it does not work. So I decided to apply the decorride_settings decorator to a specific test that looks like this:
@override_settings(CELERY_ALWAYS_EAGER=True, BROKER_BACKEND='memory', CELERY_EAGER_PROPAGATES_EXCEPTIONS=True) def test_foo(self): ...
Unfortunately, this test still challenges my celery worker. What can i skip? To be specific, I am using Django 1.10 with Celery 4.0.0.
source share