Skip to content

Commit 2acc150

Browse files
authored
Doc: Enhance "Testing with Celery" section (#8955)
1 parent afeeff8 commit 2acc150

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/userguide/testing.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
Testing with Celery
55
================================================================
66

7+
Testing with Celery is divided into two parts:
8+
9+
* Unit & Integration: Using ``celery.contrib.pytest``.
10+
* Smoke / Production: Using :pypi:`pytest-celery <pytest-celery>` >= 1.0.0
11+
12+
Installing the pytest-celery plugin will install the ``celery.contrib.pytest`` infrastructure as well,
13+
alongside the pytest plugin infrastructure. The difference is how you use it.
14+
15+
.. warning::
16+
17+
Both APIs are NOT compatible with each other. The pytest-celery plugin is Docker based
18+
and the ``celery.contrib.pytest`` is mock based.
19+
20+
To use the ``celery.contrib.pytest`` infrastructure, follow the instructions below.
21+
22+
The pytest-celery plugin has its `own documentation <https://pytest-celery.readthedocs.io/>`_.
23+
724
Tasks and unit tests
825
====================
926

0 commit comments

Comments
 (0)