MCPcopy
hub / github.com/celery/celery / test_link_error_using_signature

Method test_link_error_using_signature

t/integration/test_canvas.py:161–169  ·  view source on GitHub ↗
(self, manager)

Source from the content-addressed store, hash-verified

159 exception, True)
160
161 def test_link_error_using_signature(self, manager):
162 fail = signature('t.integration.tasks.fail', args=("test",))
163 return_exception = signature('t.integration.tasks.return_exception')
164
165 fail.link_error(return_exception)
166
167 exception = ExpectedException("Task expected to fail", "test")
168 assert (fail.delay().get(timeout=TIMEOUT / 10, propagate=False), True) == (
169 exception, True)
170
171
172class test_chain:

Callers

nothing calls this directly

Calls 5

signatureFunction · 0.90
ExpectedExceptionClass · 0.70
link_errorMethod · 0.45
getMethod · 0.45
delayMethod · 0.45

Tested by

no test coverage detected