MCPcopy
hub / github.com/scrapy/scrapy / test_parse_with_rules

Method test_parse_with_rules

tests/test_spider_crawl.py:291–301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

289 assert len(w) == 1
290
291 def test_parse_with_rules(self):
292 class _CrawlSpider(CrawlSpider):
293 name = "test"
294 start_urls = "https://www.example.com"
295
296 with warnings.catch_warnings(record=True) as w:
297 spider = _CrawlSpider()
298 spider.parse_with_rules(
299 TextResponse(spider.start_urls, body=b""), None, None
300 )
301 assert len(w) == 0
302
303
304class TestDeprecation:

Callers

nothing calls this directly

Calls 3

TextResponseClass · 0.90
parse_with_rulesMethod · 0.80
_CrawlSpiderClass · 0.70

Tested by

no test coverage detected