MCPcopy
hub / github.com/scrapy/scrapy / test_not_configured_handler

Method test_not_configured_handler

tests/test_downloader_handlers.py:71–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 assert "scheme" not in dh._notconfigured
70
71 def test_not_configured_handler(self):
72 handlers = {"scheme": OffDH}
73 crawler = get_crawler(settings_dict={"DOWNLOAD_HANDLERS": handlers})
74 dh = DownloadHandlers(crawler)
75 assert "scheme" in dh._schemes
76 assert "scheme" not in dh._handlers
77 assert "scheme" in dh._notconfigured
78
79 def test_buggy_handler(self, caplog: pytest.LogCaptureFixture) -> None:
80 handlers = {"scheme": BuggyDH}

Callers

nothing calls this directly

Calls 2

get_crawlerFunction · 0.90
DownloadHandlersClass · 0.90

Tested by

no test coverage detected