|
@@ -5,6 +5,7 @@ from mock import Mock
|
5
|
5
|
from urlparse import ParseResult
|
6
|
6
|
from searx import webapp
|
7
|
7
|
from searx.testing import SearxTestCase
|
|
8
|
+from searx.search import Search
|
8
|
9
|
|
9
|
10
|
|
10
|
11
|
class ViewsTestCase(SearxTestCase):
|
|
@@ -41,7 +42,7 @@ class ViewsTestCase(SearxTestCase):
|
41
|
42
|
results_number=lambda: 3,
|
42
|
43
|
results_length=lambda: len(self.test_results))
|
43
|
44
|
|
44
|
|
- webapp.Search.search = search_mock
|
|
45
|
+ Search.search = search_mock
|
45
|
46
|
|
46
|
47
|
def get_current_theme_name_mock(override=None):
|
47
|
48
|
return 'legacy'
|