File: extensions.py

package info (click to toggle)
python-scrapy 0.14.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,064 kB
  • sloc: python: 19,468; xml: 199; sh: 134; makefile: 67
file content (10 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
"""A test extension used to check the settings loading order"""

from scrapy.conf import settings

settings.overrides['TEST1'] = "%s + %s" % (settings['TEST1'], 'loaded')

class TestExtension(object):

    def __init__(self):
        settings.overrides['TEST1'] = "%s + %s" % (settings['TEST1'], 'started')