From 7288147d65a32b726869ed887d99e4bfd8c070e2 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sun, 4 Oct 2020 14:02:47 +0100 Subject: [PATCH] fix pytest plugin registration documentation (#6387) * fix pytest plugin registration documentation * Update docs/userguide/testing.rst Co-authored-by: Thomas Grainger Co-authored-by: Omer Katz --- docs/userguide/testing.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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