pytest-celery contains a container based celery_worker fixture. celery_worker fixture also used for celery in celery.contrib.pytest.
When a test is called like this:
def test_a(celery_app, celery_worker):
celery_app
celery_worker
assert True
celery_app is from celery.contrib.pytest and celery_worker is from pytest-celery (docker based)
pytest-celery contains a container based
celery_workerfixture.celery_workerfixture also used for celery incelery.contrib.pytest.When a test is called like this:
celery_appis from celery.contrib.pytest andcelery_workeris from pytest-celery (docker based)