MCPcopy
hub / github.com/scrapy/scrapy / test_skip_messages

Method test_skip_messages

tests/test_logformatter.py:284–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

282
283 @inline_callbacks_test
284 def test_skip_messages(self):
285 settings = self.base_settings.copy()
286 settings["LOG_FORMATTER"] = SkipMessagesLogFormatter
287 crawler = get_crawler(ItemSpider, settings)
288 with LogCapture() as lc:
289 yield crawler.crawl(mockserver=self.mockserver)
290 assert "Scraped from <200 http://127.0.0.1:" not in str(lc)
291 assert "Crawled (200) <GET http://127.0.0.1:" not in str(lc)
292 assert "Dropped: Ignoring item" not in str(lc)

Callers

nothing calls this directly

Calls 3

get_crawlerFunction · 0.90
copyMethod · 0.45
crawlMethod · 0.45

Tested by

no test coverage detected