MCPcopy
hub / github.com/scrapy/scrapy / test_asyncio_delayed

Method test_asyncio_delayed

tests/test_spider_start.py:86–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 @pytest.mark.only_asyncio
85 @coroutine_test
86 async def test_asyncio_delayed(self):
87 async def start(spider):
88 await sleep(SLEEP_SECONDS)
89 yield ITEM_A
90
91 await self._test_start(start, [ITEM_A])
92
93 @pytest.mark.requires_reactor # needs a reactor for twisted_sleep()
94 @coroutine_test

Callers

nothing calls this directly

Calls 1

_test_startMethod · 0.95

Tested by

no test coverage detected