Skip to content

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

Update sample file references

Eugenio Lacuesta6781d2f5b261
diff --git a/tests/test_linkextractors.py b/tests/test_linkextractors.py
index 57ef1694a..0b94f937f 100644
--- a/tests/test_linkextractors.py
+++ b/tests/test_linkextractors.py
@@ -16,7 +16,7 @@ class Base:
escapes_whitespace = False
def setUp(self):
- body = get_testdata('link_extractor', 'sgml_linkextractor.html')
+ body = get_testdata('link_extractor', 'linkextractor.html')
self.response = HtmlResponse(url='http://example.com/index', body=body)
def test_urls_type(self):
diff --git a/tests/test_linkextractors_deprecated.py b/tests/test_linkextractors_deprecated.py
index 1366971be..388ed6ad4 100644
--- a/tests/test_linkextractors_deprecated.py
+++ b/tests/test_linkextractors_deprecated.py
@@ -111,7 +111,7 @@ class BaseSgmlLinkExtractorTestCase(unittest.TestCase):
class HtmlParserLinkExtractorTestCase(unittest.TestCase):
def setUp(self):
- body = get_testdata('link_extractor', 'sgml_linkextractor.html')
+ body = get_testdata('link_extractor', 'linkextractor.html')
self.response = HtmlResponse(url='http://example.com/index', body=body)
def test_extraction(self):
@@ -183,7 +183,7 @@ class RegexLinkExtractorTestCase(unittest.TestCase):
# than it should be.
def setUp(self):
- body = get_testdata('link_extractor', 'sgml_linkextractor.html')
+ body = get_testdata('link_extractor', 'linkextractor.html')
self.response = HtmlResponse(url='http://example.com/index', body=body)
def test_extraction(self):