diff --git a/docs/userguide/testing.rst b/docs/userguide/testing.rst index 4deccd0f15c..330a24d1dc2 100644 --- a/docs/userguide/testing.rst +++ b/docs/userguide/testing.rst @@ -105,7 +105,8 @@ Celery initially ships the plugin in a disabled state, to enable it you can eith * `pip install celery[pytest]` * `pip install pytest-celery` - * or add `pytest_plugins = 'celery.contrib.pytest'` to your pytest.ini + * or add an environment variable `PYTEST_PLUGINS=celery.contrib.pytest` + * or add `pytest_plugins = ("celery.contrib.pytest", )` to your root conftest.py Marks