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

Method test_on_apply

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

Source from the content-addressed store, hash-verified

9class test_thread_TaskPool:
10
11 def test_on_apply(self):
12 from celery.concurrency import thread
13 x = thread.TaskPool()
14 try:
15 x.on_apply(operator.add, (2, 2), {}, noop, noop)
16 finally:
17 x.stop()
18
19 def test_info(self):
20 from celery.concurrency import thread

Callers

nothing calls this directly

Calls 2

on_applyMethod · 0.95
stopMethod · 0.95

Tested by

no test coverage detected