MCPcopy
hub / github.com/celery/celery / test_link_error_eager

Method test_link_error_eager

t/integration/test_canvas.py:119–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117class test_link_error:
118 @flaky
119 def test_link_error_eager(self):
120 exception = ExpectedException("Task expected to fail", "test")
121 result = fail.apply(args=("test",), link_error=return_exception.s())
122 actual = result.get(timeout=TIMEOUT, propagate=False)
123 assert actual == exception
124
125 @flaky
126 def test_link_error(self):

Callers

nothing calls this directly

Calls 4

ExpectedExceptionClass · 0.70
applyMethod · 0.45
sMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected