Celery initially ships the plugin in a disabled state, to enable it you can either:
* pip install celery[pytest]
* pip install pytest-celery
* or add an environment variable PYTEST_PLUGINS=celery.contrib.pytest
* or add pytest_plugins = ("celery.contrib.pytest", ) to your root conftest.py
Issue introduced with the commit: https://github.com/inveniosoftware/pytest-invenio/commit/4a3fe92ebc098346cabe27677e2a2201c8143569
Starting with version 5,
celery
requires to explicitly enable the pytest contrib/fixtures.Tests error when using celery 5:
Solved by adding
pytest-celery
to thesetup.py
,tests
dependencies.From the documentation: