summaryrefslogtreecommitdiff
path: root/tests/unit/test_engines_init.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-04-08 18:44:29 +0200
committerAlexandre Flament <alex@al-f.net>2021-04-10 15:38:27 +0200
commit111180705b6f3b142732eb6325de1346f6372828 (patch)
tree977591703ba5ab673f39c1d4acdf66e768a88136 /tests/unit/test_engines_init.py
parent5d5ecdb745fb4e841d2070d3759d33cf2b12b06d (diff)
downloadsearxng-111180705b6f3b142732eb6325de1346f6372828.tar.gz
searxng-111180705b6f3b142732eb6325de1346f6372828.zip
[fix] test: avoid HTTP requests
patch engine initialization to skip HTTP request (engine_init function in searx.engines.initialize_engines)
Diffstat (limited to 'tests/unit/test_engines_init.py')
-rw-r--r--tests/unit/test_engines_init.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_engines_init.py b/tests/unit/test_engines_init.py
index cf4d50309..c75637f20 100644
--- a/tests/unit/test_engines_init.py
+++ b/tests/unit/test_engines_init.py
@@ -13,7 +13,7 @@ class TestEnginesInit(SearxTestCase):
engine_list = [{'engine': 'dummy', 'name': 'engine1', 'shortcut': 'e1'},
{'engine': 'dummy', 'name': 'engine2', 'shortcut': 'e2'}]
- engines.initialize_engines(engine_list)
+ engines.load_engines(engine_list)
self.assertEqual(len(engines.engines), 2)
self.assertIn('engine1', engines.engines)
self.assertIn('engine2', engines.engines)