MCPcopy
hub / github.com/celery/celery / test_join_native_raises

Method test_join_native_raises

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

Source from the content-addressed store, hash-verified

807 ])
808
809 def test_join_native_raises(self):
810 ts = self.app.GroupResult(uuid(), [self.app.AsyncResult(uuid())])
811 ts.iter_native = Mock()
812 ts.iter_native.return_value = iter([
813 (uuid(), {'status': states.FAILURE, 'result': KeyError()})
814 ])
815 with pytest.raises(KeyError):
816 ts.join_native(propagate=True)
817
818 def test_failed_join_report(self):
819 res = Mock()

Callers

nothing calls this directly

Calls 4

GroupResultMethod · 0.80
join_nativeMethod · 0.80
AsyncResultMethod · 0.45
raisesMethod · 0.45

Tested by

no test coverage detected