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

Method test_on_stop

t/unit/concurrency/test_thread.py:27–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 x.stop()
26
27 def test_on_stop(self):
28 from celery.concurrency import thread
29 x = thread.TaskPool()
30 x.on_stop()
31 with pytest.raises(RuntimeError):
32 x.on_apply(operator.add, (2, 2), {}, noop, noop)
33
34 def test_on_stop_cancels_pending_futures(self):
35 import threading

Callers

nothing calls this directly

Calls 3

on_stopMethod · 0.95
on_applyMethod · 0.95
raisesMethod · 0.80

Tested by

no test coverage detected