Unit testing an AsyncResult in celery
问题 I am trying to test some celery functionality in Django's unit testing framework, but whenever I try to check an AsyncResult the tests act like it was never started. I know this code works in a real environment with RabbitMQ, so I was just wondering why it didn't work when using the testing framework. Here is an example: @override_settings(CELERY_EAGER_PROPAGATES_EXCEPTIONS = True, CELERY_ALWAYS_EAGER = True, BROKER_BACKEND = 'memory',) def test_celery_do_work(self): result = myapp.tasks