MCPcopy
hub / github.com/celery/celery / test_children

Method test_children

t/unit/tasks/test_result.py:138–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 assert fun(*args) == x
137
138 def test_children(self):
139 x = self.app.AsyncResult('1')
140 children = [EagerResult(str(i), i, states.SUCCESS) for i in range(3)]
141 x._cache = {'children': children, 'status': states.SUCCESS}
142 x.backend = Mock()
143 assert x.children
144 assert len(x.children) == 3
145
146 def test_propagates_for_parent(self):
147 x = self.app.AsyncResult(uuid())

Callers

nothing calls this directly

Calls 2

EagerResultClass · 0.90
AsyncResultMethod · 0.45

Tested by

no test coverage detected