MCPcopy
hub / github.com/celery/celery / test_GroupResult_with_parent

Method test_GroupResult_with_parent

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

Source from the content-addressed store, hash-verified

1032 assert x, result_from_tuple(x == self.app)
1033
1034 def test_GroupResult_with_parent(self):
1035 parent = self.app.AsyncResult(uuid())
1036 result = self.app.GroupResult(
1037 uuid(), [self.app.AsyncResult(uuid()) for _ in range(10)],
1038 parent
1039 )
1040 second_result = result_from_tuple(result.as_tuple(), self.app)
1041 assert second_result == result
1042 assert second_result.parent == parent
1043
1044 def test_GroupResult_as_tuple(self):
1045 parent = self.app.AsyncResult(uuid())

Callers

nothing calls this directly

Calls 4

as_tupleMethod · 0.95
result_from_tupleFunction · 0.90
GroupResultMethod · 0.80
AsyncResultMethod · 0.45

Tested by

no test coverage detected