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
()
| 47 | |
| 48 | @pytest.fixture |
| 49 | def 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 | |
| 64 | def get_active_redis_channels(): |