Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

[Test] Rename outdated sample files

Eugenio Lacuestab602c61e1cc0
diff --git a/tests/sample_data/link_extractor/sgml_linkextractor.html b/tests/sample_data/link_extractor/linkextractor.html
similarity index 100%
rename from tests/sample_data/link_extractor/sgml_linkextractor.html
rename to tests/sample_data/link_extractor/linkextractor.html
diff --git a/tests/sample_data/link_extractor/sgml_linkextractor_no_href.html b/tests/sample_data/link_extractor/linkextractor_no_href.html
similarity index 100%
rename from tests/sample_data/link_extractor/sgml_linkextractor_no_href.html
rename to tests/sample_data/link_extractor/linkextractor_no_href.html
diff --git a/tests/test_http_response.py b/tests/test_http_response.py
index 6d3c5cb9d..0ae1612b5 100644
--- a/tests/test_http_response.py
+++ b/tests/test_http_response.py
@@ -250,12 +250,12 @@ class BaseResponseTest(unittest.TestCase):
yield req
def _links_response(self):
- body = get_testdata('link_extractor', 'sgml_linkextractor.html')
+ body = get_testdata('link_extractor', 'linkextractor.html')
resp = self.response_class('http://example.com/index', body=body)
return resp
def _links_response_no_href(self):
- body = get_testdata('link_extractor', 'sgml_linkextractor_no_href.html')
+ body = get_testdata('link_extractor', 'linkextractor_no_href.html')
resp = self.response_class('http://example.com/index', body=body)
return resp