Scrapy, a fast high-level web crawling & scraping framework for Python.
SCRAPY_CHECK will be set while running contact
faizan27000641ba0faa97
diff --git a/scrapy/commands/check.py b/scrapy/commands/check.pyindex 9d4437a47..09a76ca7a 100644--- a/scrapy/commands/check.py+++ b/scrapy/commands/check.py@@ -78,19 +78,19 @@ class Command(ScrapyCommand):elif tested_methods:self.crawler_process.crawl(spidercls)- # start checks- if opts.list:- for spider, methods in sorted(contract_reqs.items()):- if not methods and not opts.verbose:- continue- print(spider)- for method in sorted(methods):- print(' * %s' % method)- else:- start = time.time()- self.crawler_process.start()- stop = time.time()-- result.printErrors()- result.printSummary(start, stop)- self.exitcode = int(not result.wasSuccessful())+ # start checks+ if opts.list:+ for spider, methods in sorted(contract_reqs.items()):+ if not methods and not opts.verbose:+ continue+ print(spider)+ for method in sorted(methods):+ print(' * %s' % method)+ else:+ start = time.time()+ self.crawler_process.start()+ stop = time.time()++ result.printErrors()+ result.printSummary(start, stop)+ self.exitcode = int(not result.wasSuccessful())