Skip to content

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

Add link extractor back to test

Samuel Bartlett7cb7cf1ad1aa
diff --git a/tests/test_linkextractors.py b/tests/test_linkextractors.py
index d992a5eae..3ad1abea5 100644
--- a/tests/test_linkextractors.py
+++ b/tests/test_linkextractors.py
@@ -823,6 +823,7 @@ class LxmlLinkExtractorTestCase(Base.LinkExtractorTestCase):
<a href="http://example.org/item3.html">Good Link 2</a>
"""
response = HtmlResponse("http://example.org/index.html", body=html)
+ lx = self.extractor_cls()
self.assertEqual(
[link for link in lx.extract_links(response)],
[