(self)
| 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 | |
| 304 | class TestDeprecation: |
nothing calls this directly
no test coverage detected