(self)
| 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]) |
nothing calls this directly
no test coverage detected