Scrapy, a fast high-level web crawling & scraping framework for Python.
Merge branch 'master' of github.com:StasDeep/scrapy into feature/issue-3364
Stas Glubokiy11576f5c8fa6
diff --cc tests/test_contracts.pyindex 9c80d48bd,322d20c4c..21be54c76--- a/tests/test_contracts.py+++ b/tests/test_contracts.py@@@ -116,34 -101,12 +116,38 @@@ class TestSpider(Spider)pass+class CustomContractSuccessSpider(Spider):+ name = 'custom_contract_success_spider'++ def parse(self, response):+ """+ @custom_success_contract+ """+ pass+++class CustomContractFailSpider(Spider):+ name = 'custom_contract_fail_spider'++ def parse(self, response):+ """+ @custom_fail_contract+ """+ pass+++ class InheritsTestSpider(TestSpider):+ name = 'inherits_demo_spider'++class ContractsManagerTest(unittest.TestCase):- contracts = [UrlContract, ReturnsContract, ScrapesContract]+ contracts = [+ UrlContract,+ ReturnsContract,+ ScrapesContract,+ CustomSuccessContract,+ CustomFailContract+ ]def setUp(self):self.conman = ContractsManager(self.contracts)