MCPcopy
hub / github.com/celery/celery / test_time_limit

Method test_time_limit

t/unit/app/test_control.py:279–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

277 )
278
279 def test_time_limit(self):
280 self.app.control.time_limit(self.mytask.name, soft=10, hard=20)
281 self.assert_control_called_with_args(
282 'time_limit',
283 destination=None,
284 task_name=self.mytask.name,
285 soft=10,
286 hard=20,
287 )
288
289 def test_time_limit__with_destination(self):
290 self.app.control.time_limit(

Callers

nothing calls this directly

Calls 2

time_limitMethod · 0.80

Tested by

no test coverage detected