From ba590de7f1506b8b8e281403dc47b6dcdbe3ead1 Mon Sep 17 00:00:00 2001 From: Noemi Vanyi Date: Tue, 19 Jul 2016 09:37:02 +0200 Subject: [fix] deviantart engine xpaths --- tests/unit/engines/test_deviantart.py | 47 ++++++----------------------------- 1 file changed, 8 insertions(+), 39 deletions(-) (limited to 'tests') diff --git a/tests/unit/engines/test_deviantart.py b/tests/unit/engines/test_deviantart.py index 78a391334..c00bb8fab 100644 --- a/tests/unit/engines/test_deviantart.py +++ b/tests/unit/engines/test_deviantart.py @@ -28,44 +28,13 @@ class TestDeviantartEngine(SearxTestCase): self.assertEqual(deviantart.response(response), []) html = """ -
- - - - - - - Test - - - - - - - Title of image - - - - 5 years ago - - in Animation - - - - More Like This - - - +
+ + + + + Title of image
""" response = mock.Mock(text=html) @@ -73,7 +42,7 @@ class TestDeviantartEngine(SearxTestCase): self.assertEqual(type(results), list) self.assertEqual(len(results), 1) self.assertEqual(results[0]['title'], 'Title of image') - self.assertEqual(results[0]['url'], 'http://url.of.result/2nd.part.of.url') + self.assertEqual(results[0]['url'], 'https://url.of.image') self.assertNotIn('content', results[0]) self.assertEqual(results[0]['thumbnail_src'], 'https://url.of.thumbnail') -- cgit v1.2.3