MCPcopy
hub / github.com/celery/celery / test_failed_join_report

Method test_failed_join_report

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

Source from the content-addressed store, hash-verified

816 ts.join_native(propagate=True)
817
818 def test_failed_join_report(self):
819 res = Mock()
820 ts = self.app.GroupResult(uuid(), [res])
821 res.state = states.FAILURE
822 res.backend.is_cached.return_value = True
823 assert next(ts._failed_join_report()) is res
824 res.backend.is_cached.return_value = False
825 with pytest.raises(StopIteration):
826 next(ts._failed_join_report())
827
828 def test_repr(self):
829 assert repr(

Callers

nothing calls this directly

Calls 3

GroupResultMethod · 0.80
_failed_join_reportMethod · 0.45
raisesMethod · 0.45

Tested by

no test coverage detected