MCPcopy
hub / github.com/scrapy/scrapy / test_show_messages

Method test_show_messages

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

Source from the content-addressed store, hash-verified

273
274 @inline_callbacks_test
275 def test_show_messages(self):
276 crawler = get_crawler(ItemSpider, self.base_settings)
277 with LogCapture() as lc:
278 yield crawler.crawl(mockserver=self.mockserver)
279 assert "Scraped from <200 http://127.0.0.1:" in str(lc)
280 assert "Crawled (200) <GET http://127.0.0.1:" in str(lc)
281 assert "Dropped: Ignoring item" in str(lc)
282
283 @inline_callbacks_test
284 def test_skip_messages(self):

Callers

nothing calls this directly

Calls 2

get_crawlerFunction · 0.90
crawlMethod · 0.45

Tested by

no test coverage detected