MCPcopy
hub / github.com/celery/celery / test_sanity

Method test_sanity

t/smoke/tests/test_control.py:5–12  ·  view source on GitHub ↗
(self, celery_setup: CeleryTestSetup)

Source from the content-addressed store, hash-verified

3
4class test_control:
5 def test_sanity(self, celery_setup: CeleryTestSetup):
6 r = celery_setup.app.control.ping()
7 assert all(
8 [
9 all([res["ok"] == "pong" for _, res in response.items()])
10 for response in r
11 ]
12 )
13
14 def test_shutdown_exit_with_zero(self, celery_setup: CeleryTestSetup):
15 celery_setup.app.control.shutdown(destination=[celery_setup.worker.hostname()])

Callers

nothing calls this directly

Calls 2

pingMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected