on master help sign in
fix line lengths for pep8 standards
62b2f79woorst
tests/unit/engines/test_genius.py+6−6
@@ -95,7 +95,7 @@ class TestGeniusEngine(SearxTestCase):
95 "annotation_count": 45,
95 "annotation_count": 45,
96 "api_path": "/songs/52916",
96 "api_path": "/songs/52916",
97 "full_title": "J't'emmerde by MC Jean Gab'1",
97 "full_title": "J't'emmerde by MC Jean Gab'1",
98− "header_image_thumbnail_url": "https://images.genius.com/ef9f736a86df3c3b1772f3fb7fbdb21c.300x300x1.jpg",
98+ "header_image_thumbnail_url": "https://images.genius.com/xxx.300x300x1.jpg",
99 "header_image_url": "https://images.genius.com/ef9f736a86df3c3b1772f3fb7fbdb21c.1000x1000x1.jpg",
99 "header_image_url": "https://images.genius.com/ef9f736a86df3c3b1772f3fb7fbdb21c.1000x1000x1.jpg",
100 "id": 52916,
100 "id": 52916,
101 "instrumental": false,
101 "instrumental": false,
@@ -104,7 +104,7 @@ class TestGeniusEngine(SearxTestCase):
104 "lyrics_updated_at": 1498744545,
104 "lyrics_updated_at": 1498744545,
105 "path": "/Mc-jean-gab1-jtemmerde-lyrics",
105 "path": "/Mc-jean-gab1-jtemmerde-lyrics",
106 "pyongs_count": 4,
106 "pyongs_count": 4,
107− "song_art_image_thumbnail_url": "https://images.genius.com/ef9f736a86df3c3b1772f3fb7fbdb21c.300x300x1.jpg",
107+ "song_art_image_thumbnail_url": "https://images.genius.com/xxx.300x300x1.jpg",
108 "stats": {
108 "stats": {
109 "hot": false,
109 "hot": false,
110 "unreviewed_annotations": 0,
110 "unreviewed_annotations": 0,
@@ -164,8 +164,8 @@ class TestGeniusEngine(SearxTestCase):
164 "result": {
164 "result": {
165 "_type": "album",
165 "_type": "album",
166 "api_path": "/albums/132332",
166 "api_path": "/albums/132332",
167− "cover_art_thumbnail_url": "https://images.genius.com/147d70434ba190b9b1c26b06aee87d17.300x300x1.jpg",
167+ "cover_art_thumbnail_url": "https://images.genius.com/xxx.300x300x1.jpg",
168− "cover_art_url": "https://images.genius.com/147d70434ba190b9b1c26b06aee87d17.600x600x1.jpg",
168+ "cover_art_url": "https://images.genius.com/xxx.600x600x1.jpg",
169 "full_title": "ASD by A Skylit Drive",
169 "full_title": "ASD by A Skylit Drive",
170 "id": 132332,
170 "id": 132332,
171 "name": "ASD",
171 "name": "ASD",
@@ -210,7 +210,7 @@ class TestGeniusEngine(SearxTestCase):
210 self.assertEqual(r['title'], "J't'emmerde by MC Jean Gab'1")
210 self.assertEqual(r['title'], "J't'emmerde by MC Jean Gab'1")
211 self.assertEqual(r['content'], "Sample lyrics")
211 self.assertEqual(r['content'], "Sample lyrics")
212 self.assertEqual(r['template'], 'videos.html')
212 self.assertEqual(r['template'], 'videos.html')
213− self.assertEqual(r['thumbnail'], 'https://images.genius.com/ef9f736a86df3c3b1772f3fb7fbdb21c.300x300x1.jpg')
213+ self.assertEqual(r['thumbnail'], 'https://images.genius.com/xxx.300x300x1.jpg')
214 created = datetime.fromtimestamp(1498744545)
214 created = datetime.fromtimestamp(1498744545)
215 self.assertEqual(r['publishedDate'], created)
215 self.assertEqual(r['publishedDate'], created)
216
216
@@ -228,4 +228,4 @@ class TestGeniusEngine(SearxTestCase):
228 self.assertEqual(r['title'], "ASD by A Skylit Drive")
228 self.assertEqual(r['title'], "ASD by A Skylit Drive")
229 self.assertEqual(r['content'], "Released: 2015")
229 self.assertEqual(r['content'], "Released: 2015")
230 self.assertEqual(r['template'], 'videos.html')
230 self.assertEqual(r['template'], 'videos.html')
231− self.assertEqual(r['thumbnail'], 'https://images.genius.com/147d70434ba190b9b1c26b06aee87d17.600x600x1.jpg')
231+ self.assertEqual(r['thumbnail'], 'https://images.genius.com/xxx.600x600x1.jpg')