MCPcopy
hub / github.com/celery/celery / test_get_timeout_longer

Method test_get_timeout_longer

t/unit/tasks/test_result.py:377–382  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

375 _time.sleep.assert_called_with(0.001)
376
377 def test_get_timeout_longer(self):
378 res = self.app.AsyncResult(self.task4['id']) # has RETRY state
379 with patch('celery.result.time') as _time:
380 with pytest.raises(TimeoutError):
381 res.get(timeout=1, interval=1)
382 _time.sleep.assert_called_with(1)
383
384 def test_ready(self):
385 oks = (self.app.AsyncResult(self.task1['id']),

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
AsyncResultMethod · 0.45
raisesMethod · 0.45

Tested by

no test coverage detected