MCPcopy
hub / github.com/celery/celery / test_stats

Method test_stats

t/integration/test_inspect.py:193–201  ·  view source on GitHub ↗

tests fetching statistics

(self, inspect)

Source from the content-addressed store, hash-verified

191
192 @flaky
193 def test_stats(self, inspect):
194 """tests fetching statistics"""
195 ret = inspect.stats()
196 assert len(ret) == 1
197 assert ret[NODENAME]['pool']['max-concurrency'] == 1
198 assert len(ret[NODENAME]['pool']['processes']) == 1
199 assert ret[NODENAME]['uptime'] > 0
200 # worker is running in the same process as separate thread
201 assert ret[NODENAME]['pid'] == os.getpid()
202
203 @flaky
204 def test_report(self, inspect):

Callers

nothing calls this directly

Calls 1

statsMethod · 0.45

Tested by

no test coverage detected