forked from Icycoide/searxng
Correct a few UT
This commit is contained in:
parent
aea0f866f6
commit
56ad00bc32
3 changed files with 18 additions and 18 deletions
|
@ -12,9 +12,14 @@ class TestBlekkoImagesEngine(SearxTestCase):
|
|||
dicto['pageno'] = 0
|
||||
dicto['safesearch'] = 1
|
||||
params = blekko_images.request(query, dicto)
|
||||
self.assertTrue('url' in params)
|
||||
self.assertTrue(query in params['url'])
|
||||
self.assertTrue('blekko.com' in params['url'])
|
||||
self.assertIn('url', params)
|
||||
self.assertIn(query, params['url'])
|
||||
self.assertIn('blekko.com', params['url'])
|
||||
self.assertIn('page', params['url'])
|
||||
|
||||
dicto['pageno'] = 1
|
||||
params = blekko_images.request(query, dicto)
|
||||
self.assertNotIn('page', params['url'])
|
||||
|
||||
def test_response(self):
|
||||
self.assertRaises(AttributeError, blekko_images.response, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue