MCPcopy
hub / github.com/scrapy/scrapy / test_simple_pipeline

Method test_simple_pipeline

tests/test_signals.py:55–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 @pytest.mark.only_asyncio
54 @inline_callbacks_test
55 def test_simple_pipeline(self):
56 crawler = get_crawler(ItemSpider)
57 crawler.signals.connect(self._on_item_scraped, signals.item_scraped)
58 yield crawler.crawl(mockserver=self.mockserver)
59 assert len(self.items) == 10
60 for index in range(10):
61 assert {"index": index} in self.items

Callers

nothing calls this directly

Calls 3

get_crawlerFunction · 0.90
connectMethod · 0.45
crawlMethod · 0.45

Tested by

no test coverage detected