MCPcopy
hub / github.com/celery/celery / test_election

Method test_election

t/unit/app/test_control.py:472–481  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

470 )
471
472 def test_election(self):
473 self.app.control.election('some_id', 'topic', 'action')
474 self.assert_control_called_with_args(
475 'election',
476 destination=None,
477 topic='topic',
478 action='action',
479 id='some_id',
480 _options={'connection': None},
481 )
482
483 def test_autoscale(self):
484 self.app.control.autoscale(300, 10)

Callers

nothing calls this directly

Calls 2

electionMethod · 0.45

Tested by

no test coverage detected