MCPcopy
hub / github.com/celery/celery / test_fail

Method test_fail

t/integration/test_tasks.py:225–233  ·  view source on GitHub ↗

Tests that the failing task propagates back correct exception.

(self, manager)

Source from the content-addressed store, hash-verified

223
224 @flaky
225 def test_fail(self, manager):
226 """Tests that the failing task propagates back correct exception."""
227 result = fail.delay()
228 with pytest.raises(ExpectedException):
229 result.get(timeout=5)
230 assert result.status == 'FAILURE'
231 assert result.ready() is True
232 assert result.failed() is True
233 assert result.successful() is False
234
235 @flaky
236 def test_revoked(self, manager):

Callers

nothing calls this directly

Calls 6

delayMethod · 0.45
raisesMethod · 0.45
getMethod · 0.45
readyMethod · 0.45
failedMethod · 0.45
successfulMethod · 0.45

Tested by

no test coverage detected