MCPcopy
hub / github.com/celery/celery / graph1

Method graph1

t/unit/utils/test_graph.py:9–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7class test_DependencyGraph:
8
9 def graph1(self):
10 res_a = self.app.AsyncResult('A')
11 res_b = self.app.AsyncResult('B')
12 res_c = self.app.GroupResult('C', [res_a])
13 res_d = self.app.GroupResult('D', [res_c, res_b])
14 node_a = (res_a, [])
15 node_b = (res_b, [])
16 node_c = (res_c, [res_a])
17 node_d = (res_d, [res_c, res_b])
18 return DependencyGraph([
19 node_a,
20 node_b,
21 node_c,
22 node_d,
23 ])
24
25 def test_repr(self):
26 assert repr(self.graph1())

Callers 9

test_reprMethod · 0.95
test_topsortMethod · 0.95
test_edgesMethod · 0.95
test_connectMethod · 0.95
test_formatMethod · 0.95
test_itemsMethod · 0.95
test_repr_nodeMethod · 0.95
test_to_dotMethod · 0.95

Calls 3

DependencyGraphClass · 0.90
GroupResultMethod · 0.80
AsyncResultMethod · 0.45

Tested by

no test coverage detected