summaryrefslogtreecommitdiff
path: root/tests/unit/test_query.py
diff options
context:
space:
mode:
authorRichard Lyons <frob@cloudstaff.com>2024-06-21 15:58:12 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-06-23 09:24:05 +0200
commit1f908a6222638b547016f5c21472ae26a76adbd2 (patch)
tree3eabc86efdd6d54d8c148c489922df7c3373d183 /tests/unit/test_query.py
parentf6f622f7e5627cc5afc8919a8fbc451b6003c9d7 (diff)
downloadsearxng-1f908a6222638b547016f5c21472ae26a76adbd2.tar.gz
searxng-1f908a6222638b547016f5c21472ae26a76adbd2.zip
[fix] engine unit tests.
Enables unit tests in the engines directory by adding __init__.py, and fixups for the enabled tests.
Diffstat (limited to 'tests/unit/test_query.py')
-rw-r--r--tests/unit/test_query.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/test_query.py b/tests/unit/test_query.py
index b4f5f8a0d..4c609760e 100644
--- a/tests/unit/test_query.py
+++ b/tests/unit/test_query.py
@@ -247,6 +247,7 @@ class TestBang(SearxTestCase): # pylint:disable=missing-class-docstring
self.assertEqual(query.user_query_parts, TestBang.THE_QUERY.split(' '))
def test_specific(self):
+ load_engines(TEST_ENGINES)
for bang in TestBang.SPECIFIC_BANGS:
with self.subTest(msg="Check bang is specific", bang=bang):
query_text = TestBang.THE_QUERY + ' ' + bang