Skip to main content

celery_alt_dev_worker

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

def celery_alt_dev_worker(
alt_dev_worker_container: AltSmokeWorkerContainer,
celery_setup_app: Celery
) - > CeleryTestWorker

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

Parameters

NameTypeDescription
alt_dev_worker_containerAltSmokeWorkerContainerThe container instance representing the alternative development worker environment.
celery_setup_appCeleryThe Celery application instance used to configure the worker node.

Returns

TypeDescription
CeleryTestWorkerA pytest-celery worker instance that manages the lifecycle of the alternative development worker container during tests.