mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 02:22:22 +02:00
Add a bit of testing to improve coverage
This commit is contained in:
parent
ab273e2faa
commit
0a1a3e7371
3 changed files with 73 additions and 1 deletions
|
@ -23,6 +23,10 @@ class TestSwisscowsEngine(SearxTestCase):
|
|||
self.assertTrue('uiLanguage=browser' in params['url'])
|
||||
self.assertTrue('region=browser' in params['url'])
|
||||
|
||||
dicto['category'] = 'images'
|
||||
params = swisscows.request(query, dicto)
|
||||
self.assertIn('image', params['url'])
|
||||
|
||||
def test_response(self):
|
||||
self.assertRaises(AttributeError, swisscows.response, None)
|
||||
self.assertRaises(AttributeError, swisscows.response, [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue