浏览代码

[test/youtube_lists] Change the list used for testing the Top Lists extractor

The ‘Top tracks’ list is not always present in the channel page
Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
48f9678a32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/test_youtube_lists.py

+ 1 - 1
test/test_youtube_lists.py

@@ -120,7 +120,7 @@ class TestYoutubeLists(unittest.TestCase):
     def test_youtube_toplist(self):
     def test_youtube_toplist(self):
         dl = FakeYDL()
         dl = FakeYDL()
         ie = YoutubeTopListIE(dl)
         ie = YoutubeTopListIE(dl)
-        result = ie.extract('yttoplist:music:Top Tracks')
+        result = ie.extract('yttoplist:music:Trending')
         entries = result['entries']
         entries = result['entries']
         self.assertTrue(len(entries) >= 5)
         self.assertTrue(len(entries) >= 5)