MCPcopy
hub / github.com/scrapy/scrapy / test_no_spider

Method test_no_spider

tests/test_engine.py:667–671  ·  view source on GitHub ↗
(self, crawler: Crawler)

Source from the content-addressed store, hash-verified

665
666 @coroutine_test
667 async def test_no_spider(self, crawler: Crawler) -> None:
668 engine = ExecutionEngine(crawler, lambda _: None)
669 with pytest.raises(RuntimeError, match="Spider not opened"):
670 await engine.close_spider_async()
671 engine.downloader.close() # cleanup
672
673 @coroutine_test
674 async def test_exception_slot(

Callers

nothing calls this directly

Calls 3

close_spider_asyncMethod · 0.95
ExecutionEngineClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected