MCPcopy
hub / github.com/scrapy/scrapy / test_crawler_rejects_spider_objects

Method test_crawler_rejects_spider_objects

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

Source from the content-addressed store, hash-verified

88 self.assertOptionIsDefault(crawler.settings, "RETRY_ENABLED")
89
90 def test_crawler_rejects_spider_objects(self):
91 with pytest.raises(ValueError, match="spidercls argument must be a class"):
92 Crawler(DefaultSpider())
93
94 @inline_callbacks_test
95 def test_crawler_crawl_twice_seq_unsupported(self):

Callers

nothing calls this directly

Calls 2

CrawlerClass · 0.90
DefaultSpiderClass · 0.90

Tested by

no test coverage detected