tests.test_celery¶
Module Contents¶
Functions¶
pytest fixture for running celery tests. |
|
Test a simple celery task (computing the square of a number) by sending it to the task queue and retrieving the result in a blocking way. |
|
Test that an exception is properly raised when a celery task fails. |
API¶
- tests.test_celery.async_test()¶
pytest fixture for running celery tests.
- tests.test_celery.test_celery_serializer(async_test)¶
Test a simple celery task (computing the square of a number) by sending it to the task queue and retrieving the result in a blocking way.
- tests.test_celery.test_failing_task(async_test)¶
Test that an exception is properly raised when a celery task fails.