1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-22 22:03:53 +00:00
scrapy/tests/test_cmdline/extensions.py
Adrián Chaves f261cf65e9 Add missing blank lines between functions and classes
Also fixed 2 unrelated Flake8 issues
2019-11-18 17:16:09 +01:00

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