MCPcopy
hub / github.com/scrapy/scrapy / test_mutableasyncchain_exc

Method test_mutableasyncchain_exc

tests/test_utils_python.py:67–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65
66 @coroutine_test
67 async def test_mutableasyncchain_exc(self):
68 m = MutableAsyncChain(self.g1())
69 m.extend(self.g4())
70 m.extend(self.g3())
71
72 results = await collect_asyncgen(aiter_errback(m, lambda _: None))
73 assert results == list(range(5))
74
75
76class TestToUnicode:

Callers

nothing calls this directly

Calls 7

g1Method · 0.95
extendMethod · 0.95
g4Method · 0.95
g3Method · 0.95
MutableAsyncChainClass · 0.90
collect_asyncgenFunction · 0.90
aiter_errbackFunction · 0.90

Tested by

no test coverage detected