summaryrefslogtreecommitdiff
path: root/tests/unit/test_webadapter.py
diff options
context:
space:
mode:
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, [])