mirror of https://github.com/scrapy/scrapy.git
removed deprecated stat 'envinfo/request_depth_limit'. we should instead support dumping settings, for these cases
This commit is contained in:
parent
9d9c8877da
commit
35b52fcdf0
|
|
@ -13,8 +13,6 @@ class DepthMiddleware(object):
|
|||
self.maxdepth = maxdepth
|
||||
self.stats = stats
|
||||
self.verbose_stats = verbose_stats
|
||||
if self.stats and self.maxdepth:
|
||||
stats.set_value('envinfo/request_depth_limit', maxdepth)
|
||||
|
||||
@classmethod
|
||||
def from_settings(cls, settings):
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ class TestDepthMiddleware(TestCase):
|
|||
self.stats.open_spider(self.spider)
|
||||
|
||||
self.mw = DepthMiddleware(1, self.stats, True)
|
||||
self.assertEquals(self.stats.get_value('envinfo/request_depth_limit'), 1)
|
||||
|
||||
def test_process_spider_output(self):
|
||||
req = Request('http://scrapytest.org')
|
||||
|
|
|
|||
Loading…
Reference in New Issue