Skip to content

Commit

Permalink
adding second index to tests views of public interface
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed May 5, 2015
1 parent 170118b commit 41e7741
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions voseq/public_interface/tests/test_views.py
@@ -1,16 +1,9 @@
import json
import os

from django.core.management import call_command
from django.test import Client
from django.test import TestCase
from django.test.utils import override_settings
import haystack

from public_interface.models import Vouchers
from public_interface.models import FlickrImages
from public_interface.models import Sequences


# Need to use a clean index for our tests
TEST_INDEX = {
Expand All @@ -19,6 +12,16 @@
'URL': 'http://127.0.0.1:9200/',
'TIMEOUT': 60 * 10,
'INDEX_NAME': 'test_index',
'INCLUDE_SPELLING': True,
'EXCLUDED_INDEXES': ['public_interface.search_indexes.AdvancedSearchIndex'],
},
'advanced_search': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': 'http://127.0.0.1:9200/',
'TIMEOUT': 60 * 10,
'INDEX_NAME': 'test_advanced_search_index',
'INCLUDE_SPELLING': False,
'EXCLUDED_INDEXES': ['public_interface.search_indexes.VouchersIndex'],
},
}

Expand Down

0 comments on commit 41e7741

Please sign in to comment.