mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
[fix] pep8
This commit is contained in:
parent
33ff1de9be
commit
0491b78f70
2 changed files with 14 additions and 11 deletions
|
@ -44,17 +44,20 @@ class TestBingImagesEngine(SearxTestCase):
|
|||
</a>
|
||||
|
||||
</div>
|
||||
"""
|
||||
""" # noqa
|
||||
html = html.replace('\r\n', '').replace('\n', '').replace('\r', '')
|
||||
response = mock.Mock(text=html)
|
||||
results = bing_images.response(response)
|
||||
self.assertEqual(type(results), list)
|
||||
self.assertEqual(len(results), 1)
|
||||
self.assertEqual(results[0]['title'], 'South Carolina')
|
||||
self.assertEqual(results[0]['url'], 'http://www.digital-topo-maps.com/county-map/south-carolina.shtml')
|
||||
self.assertEqual(results[0]['url'],
|
||||
'http://www.digital-topo-maps.com/county-map/south-carolina.shtml')
|
||||
self.assertEqual(results[0]['content'], '')
|
||||
self.assertEqual(results[0]['thumbnail_src'], 'https://www.bing.com/th?id=OIP.Mbf3bc87efe6e0e476be8cc34bf6cd80eH0')
|
||||
self.assertEqual(results[0]['img_src'], 'http://www.digital-topo-maps.com/county-map/south-carolina-county-map.gif')
|
||||
self.assertEqual(results[0]['thumbnail_src'],
|
||||
'https://www.bing.com/th?id=OIP.Mbf3bc87efe6e0e476be8cc34bf6cd80eH0')
|
||||
self.assertEqual(results[0]['img_src'],
|
||||
'http://www.digital-topo-maps.com/county-map/south-carolina-county-map.gif')
|
||||
|
||||
html = """
|
||||
<a href="#" ihk="HN.608003696942779811"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue