mirror of
https://github.com/searxng/searxng.git
synced 2026-06-03 16:37:16 +02:00
Add a bit of testing to improve coverage
This commit is contained in:
@@ -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, [])
|
||||
|
||||
Reference in New Issue
Block a user