MCPcopy
hub / github.com/scrapy/scrapy / test_simple

Method test_simple

tests/test_spidermiddleware.py:283–289  ·  view source on GitHub ↗

Simple mw

(self)

Source from the content-addressed store, hash-verified

281
282 @coroutine_test
283 async def test_simple(self):
284 """Simple mw"""
285 start = await self._get_processed_start(self.MW_SIMPLE)
286 assert isasyncgen(start)
287 start_list = await collect_asyncgen(start)
288 assert len(start_list) == self.RESULT_COUNT
289 assert isinstance(start_list[0], self.ITEM_TYPE)
290
291
292class UniversalMiddlewareNoSync:

Callers

nothing calls this directly

Calls 2

_get_processed_startMethod · 0.95
collect_asyncgenFunction · 0.90

Tested by

no test coverage detected