forked from Icycoide/searxng
[fix] duckduckgo images requests
This commit is contained in:
parent
34d85c8c3c
commit
3e1c2153f7
2 changed files with 8 additions and 5 deletions
|
@ -41,7 +41,7 @@ class TestDuckduckgoImagesEngine(SearxTestCase):
|
|||
self.assertRaises(AttributeError, duckduckgo_images.response, '[]')
|
||||
|
||||
response = mock.Mock(text='If this error persists, please let us know: ops@duckduckgo.com')
|
||||
self.assertEqual(duckduckgo_images.response(response), [])
|
||||
self.assertRaises(Exception, duckduckgo_images.response, response)
|
||||
|
||||
json = u"""
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue