MCPcopy
hub / github.com/celery/celery / test_terminate

Method test_terminate

t/unit/worker/test_bootsteps.py:203–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 assert not self.steps
202
203 def test_terminate(self):
204 x = self.Def(self)
205 x.create = Mock()
206
207 x.include(self)
208 delattr(x.obj, 'terminate')
209 x.terminate(self)
210 x.obj.stop.assert_called_with()
211
212
213class test_Blueprint:

Callers

nothing calls this directly

Calls 2

includeMethod · 0.45
terminateMethod · 0.45

Tested by

no test coverage detected