mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-22 22:03:53 +00:00
16 lines
336 B
Python
16 lines
336 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)
|
|
|
|
|
|
class DummyExtension(object):
|
|
pass
|