MCPcopy
hub / github.com/celery/celery / test_reduce_direct

Method test_reduce_direct

t/unit/events/test_state.py:275–279  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

273 assert not list(task.info('foo'))
274
275 def test_reduce_direct(self):
276 task = Task(uuid='uuid', name='tasks.add', args='(2, 2)')
277 fun, args = task.__reduce__()
278 task2 = fun(*args)
279 assert task == task2
280
281 def test_ready(self):
282 task = Task(uuid='abcdefg',

Callers

nothing calls this directly

Calls 3

__reduce__Method · 0.95
TaskClass · 0.90
funFunction · 0.85

Tested by

no test coverage detected