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

Function MockStep

t/unit/worker/test_worker.py:41–48  ·  view source on GitHub ↗
(step=None)

Source from the content-addressed store, hash-verified

39
40
41def MockStep(step=None):
42 if step is None:
43 step = Mock(name='step')
44 else:
45 step.blueprint = Mock(name='step.blueprint')
46 step.blueprint.name = 'MockNS'
47 step.name = f'MockStep({id(step)})'
48 return step
49
50
51def mock_event_dispatcher():

Callers 3

test_start__stopMethod · 0.85
test_start__terminateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected