summaryrefslogtreecommitdiff
path: root/tests/unit/test_webadapter.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-16 13:41:32 +0100
committerAlexandre Flament <alex@al-f.net>2020-12-17 11:39:36 +0100
commit7ec8bc3ea76516e33318c67165161df5c1efdd36 (patch)
tree6c9dff310882db816cada8662ef5ed2b8a8158e8 /tests/unit/test_webadapter.py
parentc0cc01e936593ff3df828fa3bb834507c45cd7ac (diff)
[mod] split searx.search into different processors
see searx.search.processors.abstract.EngineProcessor First the method searx call the get_params method. If the return value is not None, then the searx call the method search.
Diffstat (limited to 'tests/unit/test_webadapter.py')
-rw-r--r--tests/unit/test_webadapter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_webadapter.py b/tests/unit/test_webadapter.py
index f620cf300..32417f019 100644
--- a/tests/unit/test_webadapter.py
+++ b/tests/unit/test_webadapter.py
@@ -17,7 +17,7 @@ TEST_ENGINES = [
'categories': 'general',
'shortcut': 'do',
'timeout': 3.0,
- 'offline': True,
+ 'engine_type': 'offline',
'tokens': ['my-token'],
},
]
@@ -28,7 +28,7 @@ class ValidateQueryCase(SearxTestCase):
@classmethod
def setUpClass(cls):
- searx.engines.initialize_engines(TEST_ENGINES)
+ searx.search.initialize(TEST_ENGINES)
def test_query_private_engine_without_token(self):
preferences = Preferences(['oscar'], ['general'], engines, [])