mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
bing_images & www1x engines use https connections
This commit is contained in:
parent
4e28f12bfc
commit
9e147d91f0
4 changed files with 5 additions and 5 deletions
|
|
@ -59,7 +59,7 @@ oh:"238",tft:"0",oi:"http://www.image.url/Images/Test%2
|
|||
self.assertEqual(results[0]['title'], 'Test Query')
|
||||
self.assertEqual(results[0]['url'], 'http://www.page.url/')
|
||||
self.assertEqual(results[0]['content'], '')
|
||||
self.assertEqual(results[0]['thumbnail_src'], 'http://ts1.mm.bing.net/th?id=HN.608003696942779811')
|
||||
self.assertEqual(results[0]['thumbnail_src'], 'https://www.bing.com/th?id=HN.608003696942779811')
|
||||
self.assertEqual(results[0]['img_src'], 'http://test.url/Test%20Query.jpg')
|
||||
|
||||
html = """
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class TestWww1xEngine(SearxTestCase):
|
|||
results = www1x.response(response)
|
||||
self.assertEqual(type(results), list)
|
||||
self.assertEqual(len(results), 1)
|
||||
self.assertEqual(results[0]['url'], 'http://1x.com/photo/123456')
|
||||
self.assertEqual(results[0]['thumbnail_src'], 'http://1x.com/images/user/testimage-123456.jpg')
|
||||
self.assertEqual(results[0]['url'], 'https://1x.com/photo/123456')
|
||||
self.assertEqual(results[0]['thumbnail_src'], 'https://1x.com/images/user/testimage-123456.jpg')
|
||||
self.assertEqual(results[0]['content'], '')
|
||||
self.assertEqual(results[0]['template'], 'images.html')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue