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

Method test_stats

t/unit/worker/test_control.py:450–455  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

448 assert 'leaked' not in info
449
450 def test_stats(self):
451 prev_count, worker_state.total_count = worker_state.total_count, 100
452 try:
453 assert self.panel.handle('stats')['total'] == 100
454 finally:
455 worker_state.total_count = prev_count
456
457 def test_report(self):
458 self.panel.handle('report')

Callers

nothing calls this directly

Calls 1

handleMethod · 0.45

Tested by

no test coverage detected