mirror of
https://github.com/searxng/searxng.git
synced 2025-08-28 14:29:05 +02:00
[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:
parent
f6f622f7e5
commit
1f908a6222
4 changed files with 44 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue