MCPcopy
hub / github.com/celery/celery / Consumer

Method Consumer

t/unit/worker/test_consumer.py:1163–1169  ·  view source on GitHub ↗
(self, hostname='foo@x.com', pid=4312)

Source from the content-addressed store, hash-verified

1161 logger.exception.assert_called()
1162
1163 def Consumer(self, hostname='foo@x.com', pid=4312):
1164 c = Mock()
1165 c.app.connection = _amqp_connection()
1166 c.hostname = hostname
1167 c.pid = pid
1168 c.app.events.Receiver.return_value = Mock(accept=[])
1169 return c
1170
1171 def setup_election(self, g, c):
1172 g.start(c)

Callers 15

test_initMethod · 0.95
test_callbacksMethod · 0.95
test_electionMethod · 0.95
test_call_taskMethod · 0.95
test_on_electMethod · 0.95
test_on_elect_ack_winMethod · 0.95
test_on_node_joinMethod · 0.95
test_on_node_leaveMethod · 0.95
test_on_node_lostMethod · 0.95
test_register_timerMethod · 0.95

Calls 1

_amqp_connectionFunction · 0.85

Tested by

no test coverage detected