Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (20 sloc) 0.882 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# The test system uses this to override settings in settings.py and
# settings_local.py with settings appropriate for testing.

# Make sure Celery is EAGER.
CELERY_ALWAYS_EAGER = True

# Make sure the doctypes (the keys) match the doctypes in ES_INDEXES
# in settings.py and settings_local.py.
ES_INDEXES = {'default': 'sumo_test'}
ES_WRITE_INDEXES = ES_INDEXES

# This makes sure we only turn on ES stuff when we're testing ES
# stuff.
ES_LIVE_INDEXING = False

# Make sure we use port 6383 db 2 redis for tests. That's db 2 of the
# redis test config. That shouldn't collide with anything else.
REDIS_BACKENDS = {
    'default': 'redis://localhost:6383?socket_timeout=0.5&db=2',
    'karma': 'redis://localhost:6383?socket_timeout=0.5&db=2',
    'helpfulvotes': 'redis://localhost:6383?socket_timeout=0.5&db=2',
}

# Use fake webtrends settings.
WEBTRENDS_PROFILE_ID = 'ABC123'
Something went wrong with that request. Please try again.