1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-03 11:51:30 +00:00
scrapy/tests/test_cmdline/extensions.py

11 lines
294 B
Python
Raw Normal View History

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