Skip to content
Browse files

Make settings test respect ES_INDEX_PREFIX.

  • Loading branch information...
1 parent 0f11cbd commit be30b8220900eaf549fbe1bff7a1e7c3a9be8529 @mythmon mythmon committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 settings_test.py
View
3 settings_test.py
@@ -1,3 +1,4 @@
+from django.conf import settings
# The test system uses this to override settings in settings.py and
# settings_local.py with settings appropriate for testing.
@@ -6,7 +7,7 @@
# 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_INDEXES = {'default': 'sumo_test' + settings.ES_INDEX_PREFIX}
ES_WRITE_INDEXES = ES_INDEXES
# This makes sure we only turn on ES stuff when we're testing ES

0 comments on commit be30b82

Please sign in to comment.
Something went wrong with that request. Please try again.