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

Method test_shutdown

t/unit/worker/test_control.py:917–922  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

915 assert r == {'ok': 'pong'}
916
917 def test_shutdown(self):
918 m = {'method': 'shutdown',
919 'destination': hostname}
920 with pytest.raises(SystemExit) as excinfo:
921 self.panel.handle_message(m, None)
922 assert excinfo.value.code == 0
923
924 def test_panel_reply(self):
925

Callers

nothing calls this directly

Calls 1

raisesMethod · 0.80

Tested by

no test coverage detected