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

Method test_dump_tasks2

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

Source from the content-addressed store, hash-verified

398 assert 'rate_limit=200' in info
399
400 def test_dump_tasks2(self):
401 prev, control.DEFAULT_TASK_INFO_ITEMS = (
402 control.DEFAULT_TASK_INFO_ITEMS, [])
403 try:
404 info = '\n'.join(self.panel.handle('dump_tasks'))
405 assert 'mytask' in info
406 assert 'rate_limit=200' not in info
407 finally:
408 control.DEFAULT_TASK_INFO_ITEMS = prev
409
410 def test_dump_tasks_allows_public_attributes(self):
411 # public Task attributes (incl. non-defaults) remain available --

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected