summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-11-14 22:21:19 +0100
committerAdam Tauber <asciimoo@gmail.com>2016-11-14 22:21:19 +0100
commit044809e2980193f6947d26da84ef66d03321c4b1 (patch)
tree8efb1df7b2db6089c52b0ccab2b70486fe986c8c /tests
parenta757c2f005f38a97d7ebe53ab7271e26c13b7197 (diff)
downloadsearxng-044809e2980193f6947d26da84ef66d03321c4b1.tar.gz
searxng-044809e2980193f6947d26da84ef66d03321c4b1.zip
[fix] search mocking in webapp test
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py
index 912bebc4d..1ef1f56c3 100644
--- a/tests/unit/test_webapp.py
+++ b/tests/unit/test_webapp.py
@@ -5,6 +5,7 @@ from mock import Mock
from urlparse import ParseResult
from searx import webapp
from searx.testing import SearxTestCase
+from searx.search import Search
class ViewsTestCase(SearxTestCase):
@@ -41,7 +42,7 @@ class ViewsTestCase(SearxTestCase):
results_number=lambda: 3,
results_length=lambda: len(self.test_results))
- webapp.Search.search = search_mock
+ Search.search = search_mock
def get_current_theme_name_mock(override=None):
return 'legacy'