Skip to main content

celery_other_dev_worker

Creates a pytest-celery worker node from the worker container.

def celery_other_dev_worker(
other_dev_worker_container: OtherSmokeWorkerContainer,
celery_setup_app: Celery
) - > CeleryTestWorker

Creates a pytest-celery worker node from the worker container.

Parameters

NameTypeDescription
other_dev_worker_containerOtherSmokeWorkerContainerThe container instance used to host the secondary development worker node.
celery_setup_appCeleryThe Celery application instance to be associated with the test worker.

Returns

TypeDescription
CeleryTestWorkerA managed Celery worker instance that is automatically torn down after the test completes.