diff --git a/tests/unit/engines/test_bing_videos.py b/tests/unit/engines/test_bing_videos.py index 118754b25..8b303d637 100644 --- a/tests/unit/engines/test_bing_videos.py +++ b/tests/unit/engines/test_bing_videos.py @@ -47,87 +47,54 @@ class TestBingVideosEngine(SearxTestCase): self.assertEqual(bing_videos.response(response), []) html = """ -
-
- -
-
+
+
+ +
+
-
""" response = mock.Mock(text=html) results = bing_videos.response(response) self.assertEqual(type(results), list) self.assertEqual(len(results), 1) self.assertEqual(results[0]['title'], 'Title 1') - self.assertEqual(results[0]['url'], 'https://url.com/1') - self.assertEqual(results[0]['content'], 'Content 1') - self.assertEqual(results[0]['thumbnail'], 'thumb_1.jpg') - - html = """ - - """ - response = mock.Mock(text=html) - results = bing_videos.response(response) - self.assertEqual(type(results), list) - self.assertEqual(len(results), 1) - self.assertEqual(results[0]['title'], 'Title 1') - self.assertEqual(results[0]['url'], 'https://url.com/1') + self.assertEqual(results[0]['url'], 'https://bing.com/video') self.assertEqual(results[0]['content'], 'Content 1') self.assertEqual(results[0]['thumbnail'], 'thumb_1.jpg')