1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 10:43:49 +00:00
scrapy/tests/test_cmdline/extensions.py
2014-07-30 19:45:08 -03:00

11 lines
294 B
Python

"""A test extension used to check the settings loading order"""
class TestExtension(object):
def __init__(self, settings):
settings.set('TEST1', "%s + %s" % (settings['TEST1'], 'started'))
@classmethod
def from_crawler(cls, crawler):
return cls(crawler.settings)