MCPcopy
hub / github.com/scrapy/scrapy / test_twisted_delayed

Method test_twisted_delayed

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

Source from the content-addressed store, hash-verified

93 @pytest.mark.requires_reactor # needs a reactor for twisted_sleep()
94 @coroutine_test
95 async def test_twisted_delayed(self):
96 async def start(spider):
97 await maybe_deferred_to_future(twisted_sleep(SLEEP_SECONDS))
98 yield ITEM_A
99
100 await self._test_start(start, [ITEM_A])

Callers

nothing calls this directly

Calls 1

_test_startMethod · 0.95

Tested by

no test coverage detected