MCPcopy
hub / github.com/scrapy/scrapy / test_exception_downloader

Method test_exception_downloader

tests/test_engine.py:686–694  ·  view source on GitHub ↗
(
        self, crawler: Crawler, caplog: pytest.LogCaptureFixture
    )

Source from the content-addressed store, hash-verified

684
685 @coroutine_test
686 async def test_exception_downloader(
687 self, crawler: Crawler, caplog: pytest.LogCaptureFixture
688 ) -> None:
689 engine = ExecutionEngine(crawler, lambda _: None)
690 crawler.engine = engine
691 await engine.open_spider_async()
692 del engine.downloader.slots
693 await engine.close_spider_async()
694 assert "Downloader close failure" in caplog.text
695
696 @coroutine_test
697 async def test_exception_scraper(

Callers

nothing calls this directly

Calls 3

open_spider_asyncMethod · 0.95
close_spider_asyncMethod · 0.95
ExecutionEngineClass · 0.90

Tested by

no test coverage detected