(self)
| 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']), |
nothing calls this directly
no test coverage detected