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

Method test_exit_after

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

Source from the content-addressed store, hash-verified

47 t.stop()
48
49 def test_exit_after(self):
50 t = timer2.Timer()
51 t.call_after = Mock()
52 t.exit_after(0.3, priority=10)
53 t.call_after.assert_called_with(0.3, sys.exit, 10)
54
55 def test_ensure_started_not_started(self):
56 t = timer2.Timer()

Callers

nothing calls this directly

Calls 1

exit_afterMethod · 0.95

Tested by

no test coverage detected