MCPcopy
hub / github.com/scrapy/scrapy / test_crawler_crawl_twice_seq_unsupported

Method test_crawler_crawl_twice_seq_unsupported

tests/test_crawler.py:95–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93
94 @inline_callbacks_test
95 def test_crawler_crawl_twice_seq_unsupported(self):
96 crawler = get_raw_crawler(NoRequestsSpider, BASE_SETTINGS)
97 yield crawler.crawl()
98 with pytest.raises(RuntimeError, match="more than once on the same instance"):
99 yield crawler.crawl()
100
101 @coroutine_test
102 async def test_crawler_crawl_async_twice_seq_unsupported(self):

Callers

nothing calls this directly

Calls 2

get_raw_crawlerFunction · 0.85
crawlMethod · 0.45

Tested by

no test coverage detected