(self)
| 310 | assert urls == result |
| 311 | |
| 312 | def test_compression_bomb_setting(self): |
| 313 | settings = {"DOWNLOAD_MAXSIZE": 10_000_000} |
| 314 | crawler = get_crawler(settings_dict=settings) |
| 315 | spider = self.spider_class.from_crawler(crawler, "example.com") |
| 316 | body_path = Path(tests_datadir, "compressed", "bomb-gzip.bin") |
| 317 | body = body_path.read_bytes() |
| 318 | request = Request(url="https://example.com") |
| 319 | response = Response(url="https://example.com", body=body, request=request) |
| 320 | assert spider._get_sitemap_body(response) is None |
| 321 | |
| 322 | @pytest.mark.filterwarnings("ignore::scrapy.exceptions.ScrapyDeprecationWarning") |
| 323 | def test_compression_bomb_spider_attr(self): |
nothing calls this directly
no test coverage detected