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

Method test__start_node

t/unit/apps/test_multi.py:523–532  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

521 )
522
523 def test__start_node(self):
524 node = self.cluster[0]
525 node.start = Mock(name='node.start')
526 assert self.cluster._start_node(node) is node.start.return_value
527 node.start.assert_called_with(
528 self.cluster.env,
529 on_spawn=self.cluster.on_child_spawn,
530 on_signalled=self.cluster.on_child_signalled,
531 on_failure=self.cluster.on_child_failure,
532 )
533
534 def test_send_all(self):
535 nodes = [Mock(name='n1'), Mock(name='n2')]

Callers

nothing calls this directly

Calls 1

_start_nodeMethod · 0.80

Tested by

no test coverage detected