MCPcopy Create free account
hub / github.com/celery/celery / celery_worker

Function celery_worker

t/integration/conftest.py:49–61  ·  view source on GitHub ↗

Reject per-test workers: integration tests share one session worker. This shadows the function-scoped ``celery_worker`` fixture from ``celery.contrib.pytest``. The integration suite runs against a single shared session worker (``celery_session_worker``); tests that need a custom wo

()

Source from the content-addressed store, hash-verified

47
48@pytest.fixture
49def celery_worker():
50 """Reject per-test workers: integration tests share one session worker.
51
52 This shadows the function-scoped ``celery_worker`` fixture from
53 ``celery.contrib.pytest``. The integration suite runs against a single
54 shared session worker (``celery_session_worker``); tests that need a
55 custom worker topology belong in ``t/smoke/tests/``.
56 """
57 pytest.fail(
58 'The integration suite runs against a single shared session worker '
59 '(celery_session_worker); spawning per-test workers is not supported. '
60 'Tests that need a custom worker topology belong in t/smoke/tests/.'
61 )
62
63
64def get_active_redis_channels():

Callers

nothing calls this directly

Calls 1

failMethod · 0.45

Tested by

no test coverage detected