Skip to content

Commit

Permalink
Doc: Enhance "Testing with Celery" section (#8955)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Apr 11, 2024
1 parent afeeff8 commit 2acc150
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/userguide/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@
Testing with Celery
================================================================

Testing with Celery is divided into two parts:

* Unit & Integration: Using ``celery.contrib.pytest``.
* Smoke / Production: Using :pypi:`pytest-celery <pytest-celery>` >= 1.0.0

Installing the pytest-celery plugin will install the ``celery.contrib.pytest`` infrastructure as well,
alongside the pytest plugin infrastructure. The difference is how you use it.

.. warning::

Both APIs are NOT compatible with each other. The pytest-celery plugin is Docker based
and the ``celery.contrib.pytest`` is mock based.

To use the ``celery.contrib.pytest`` infrastructure, follow the instructions below.

The pytest-celery plugin has its `own documentation <https://pytest-celery.readthedocs.io/>`_.

Tasks and unit tests
====================

Expand Down

0 comments on commit 2acc150

Please sign in to comment.