1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 04:04:21 +00:00
scrapy/tests/test_cmdline/extensions.py

16 lines
336 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)
class DummyExtension(object):
pass