From 71de593a5b9025e360da32813e9efeaeaa4992b2 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 26 Mar 2016 02:07:52 +0100 Subject: [fix] bing images page change --- tests/unit/engines/test_bing_images.py | 162 ++------------------------------- 1 file changed, 9 insertions(+), 153 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/engines/test_bing_images.py b/tests/unit/engines/test_bing_images.py index 88538d8fa..9d8ec18af 100644 --- a/tests/unit/engines/test_bing_images.py +++ b/tests/unit/engines/test_bing_images.py @@ -38,12 +38,12 @@ class TestBingImagesEngine(SearxTestCase): self.assertEqual(bing_images.response(response), []) html = """ -
+
-
+
""" # noqa html = html.replace('\r\n', '').replace('\n', '').replace('\r', '') response = mock.Mock(text=html) @@ -78,7 +78,7 @@ class TestBingImagesEngine(SearxTestCase): self.assertEqual(len(results), 0) html = """ -
+
-
-
+
+
-
-
+
+
-
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
+
""" 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), 10) + self.assertEqual(len(results), 3) -- cgit v1.2.3