[fix] engine unit tests.

Enables unit tests in the engines directory by adding __init__.py, and fixups
for the enabled tests.
This commit is contained in:
Richard Lyons 2024-06-21 15:58:12 +02:00 committed by Markus Heiser
parent f6f622f7e5
commit 1f908a6222
4 changed files with 44 additions and 35 deletions

View file

@ -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