瀏覽代碼

[fix] deezer test with https

Adam Tauber 10 年之前
父節點
當前提交
4cc79533e7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      searx/tests/engines/test_deezer.py

+ 4
- 4
searx/tests/engines/test_deezer.py 查看文件

@@ -30,9 +30,9 @@ class TestDeezerEngine(SearxTestCase):
30 30
         json = """
31 31
         {"data":[
32 32
             {"id":100, "title":"Title of track",
33
-            "link":"http:\/\/www.deezer.com\/track\/1094042","duration":232,
33
+            "link":"https:\/\/www.deezer.com\/track\/1094042","duration":232,
34 34
             "artist":{"id":200,"name":"Artist Name",
35
-                "link":"http:\/\/www.deezer.com\/artist\/1217","type":"artist"},
35
+                "link":"https:\/\/www.deezer.com\/artist\/1217","type":"artist"},
36 36
             "album":{"id":118106,"title":"Album Title","type":"album"},"type":"track"}
37 37
         ]}
38 38
         """
@@ -41,14 +41,14 @@ class TestDeezerEngine(SearxTestCase):
41 41
         self.assertEqual(type(results), list)
42 42
         self.assertEqual(len(results), 1)
43 43
         self.assertEqual(results[0]['title'], 'Title of track')
44
-        self.assertEqual(results[0]['url'], 'http://www.deezer.com/track/1094042')
44
+        self.assertEqual(results[0]['url'], 'https://www.deezer.com/track/1094042')
45 45
         self.assertEqual(results[0]['content'], 'Artist Name • Album Title • Title of track')
46 46
         self.assertTrue('100' in results[0]['embedded'])
47 47
 
48 48
         json = """
49 49
         {"data":[
50 50
             {"id":200,"name":"Artist Name",
51
-            "link":"http:\/\/www.deezer.com\/artist\/1217","type":"artist"}
51
+            "link":"https:\/\/www.deezer.com\/artist\/1217","type":"artist"}
52 52
         ]}
53 53
         """
54 54
         response = mock.Mock(text=json)