MCPcopy
hub / github.com/celery/celery / test_info

Method test_info

t/unit/worker/test_worker.py:129–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 return c
128
129 def test_info(self):
130 c = self.NoopConsumer()
131 c.connection.info.return_value = {'foo': 'bar'}
132 c.controller.pool.info.return_value = [Mock(), Mock()]
133 info = c.controller.stats()
134 assert info['prefetch_count'] == 10
135 assert info['broker']
136
137 def test_start_when_closed(self):
138 c = self.NoopConsumer()

Callers

nothing calls this directly

Calls 2

NoopConsumerMethod · 0.95
statsMethod · 0.45

Tested by

no test coverage detected