MCPcopy
hub / github.com/celery/celery / test_exit_after

Method test_exit_after

t/unit/utils/test_timer2.py:28–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 t.stop()
27
28 def test_exit_after(self):
29 t = timer2.Timer()
30 t.call_after = Mock()
31 t.exit_after(0.3, priority=10)
32 t.call_after.assert_called_with(0.3, sys.exit, 10)
33
34 def test_ensure_started_not_started(self):
35 t = timer2.Timer()

Callers

nothing calls this directly

Calls 1

exit_afterMethod · 0.95

Tested by

no test coverage detected