summaryrefslogtreecommitdiffstats
path: root/askbot/tests
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-10-08 19:32:54 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-10-08 19:32:54 -0600
commit740dd8114a344d11c081e0cb96847f03cc210398 (patch)
treef4c080b9d2959860b7b8d782aa00664ae75ea7ca /askbot/tests
parentbce103ac7af62b299b5770a2574658d19ac18790 (diff)
downloadaskbot-740dd8114a344d11c081e0cb96847f03cc210398.tar.gz
askbot-740dd8114a344d11c081e0cb96847f03cc210398.tar.bz2
askbot-740dd8114a344d11c081e0cb96847f03cc210398.zip
fixed haystack test issue
Diffstat (limited to 'askbot/tests')
-rw-r--r--askbot/tests/haystack_search_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/askbot/tests/haystack_search_tests.py b/askbot/tests/haystack_search_tests.py
index 82e73cc0..d1592f42 100644
--- a/askbot/tests/haystack_search_tests.py
+++ b/askbot/tests/haystack_search_tests.py
@@ -11,6 +11,9 @@ class HaystackSearchTests(AskbotTestCase):
that were added for askbot
"""
def setUp(self):
+ self._old_value = settings.ENABLE_HAYSTACK_SEARCH
+ setattr(settings, "ENABLE_HAYSTACK_SEARCH", True)
+
self.user = self.create_user(username='gepeto')
self.other_user = self.create_user(username = 'pinocho')
self.other_user.location = 'Managua'
@@ -48,6 +51,9 @@ class HaystackSearchTests(AskbotTestCase):
body_text="Just a random text to fill the space"
)
+ def tearDown(self):
+ setattr(settings, "ENABLE_HAYSTACK_SEARCH", self._old_value)
+
@skipIf('haystack' not in settings.INSTALLED_APPS,
'Haystack not setup')
def test_title_search(self):