Scrapy, a fast high-level web crawling & scraping framework for Python.
Merge branch 'master' into 4133-handle-start_url
Mabel Villalba070b3a4e8432
diff --cc tests/test_spider.pyindex 0a6640cec,c0fccfdd6..3cebdf7ca--- a/tests/test_spider.py+++ b/tests/test_spider.py@@@ -377,28 -385,7 +385,15 @@@ class CrawlSpiderTest(SpiderTest)self.assertTrue(hasattr(spider, '_follow_links'))self.assertFalse(spider._follow_links)- def test_follow_links_attribute_deprecated_population(self):- spider = self.spider_class('example.com')- self.assertFalse(hasattr(spider, '_follow_links'))-- spider.set_crawler(get_crawler())- self.assertTrue(hasattr(spider, '_follow_links'))- self.assertTrue(spider._follow_links)-- spider = self.spider_class('example.com')- settings_dict = {'CRAWLSPIDER_FOLLOW_LINKS': False}- spider.set_crawler(get_crawler(settings_dict=settings_dict))- self.assertTrue(hasattr(spider, '_follow_links'))- self.assertFalse(spider._follow_links)-+ def test_start_url(self):+ spider = self.spider_class("example.com")+ spider.start_url = 'https://www.example.com'++ with self.assertRaisesRegex(AttributeError,+ r'^Crawling could not start.*$'):+ list(spider.start_requests())++class SitemapSpiderTest(SpiderTest):spider_class = SitemapSpider