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

Method test_node

t/unit/worker/test_bootsteps.py:25–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 assert f._get_prefix(s3) == ''
24
25 def test_node(self):
26 f = bootsteps.StepFormatter()
27 f.draw_node = Mock()
28 step = Mock()
29 step.last = False
30 f.node(step, x=3)
31 f.draw_node.assert_called_with(step, f.node_scheme, {'x': 3})
32
33 step.last = True
34 f.node(step, x=3)
35 f.draw_node.assert_called_with(step, f.blueprint_scheme, {'x': 3})
36
37 def test_edge(self):
38 f = bootsteps.StepFormatter()

Callers

nothing calls this directly

Calls 1

nodeMethod · 0.95

Tested by

no test coverage detected