浏览代码

[test_YoutubeDL] Fix typo (closes #14856)

Sergey M․ 7 年之前
父节点
当前提交
d08dcd2dbd
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      test/test_YoutubeDL.py

+ 4 - 4
test/test_YoutubeDL.py

@@ -466,11 +466,11 @@ class TestFormatSelection(unittest.TestCase):
         ydl = YDL({'simulate': True})
         ydl = YDL({'simulate': True})
         self.assertEqual(ydl._default_format_spec({}), 'bestvideo+bestaudio/best')
         self.assertEqual(ydl._default_format_spec({}), 'bestvideo+bestaudio/best')
 
 
-        ydl = YDL({'is_live': True})
-        self.assertEqual(ydl._default_format_spec({}), 'best/bestvideo+bestaudio')
+        ydl = YDL({})
+        self.assertEqual(ydl._default_format_spec({'is_live': True}), 'best/bestvideo+bestaudio')
 
 
-        ydl = YDL({'simulate': True, 'is_live': True})
-        self.assertEqual(ydl._default_format_spec({}), 'bestvideo+bestaudio/best')
+        ydl = YDL({'simulate': True})
+        self.assertEqual(ydl._default_format_spec({'is_live': True}), 'bestvideo+bestaudio/best')
 
 
         ydl = YDL({'outtmpl': '-'})
         ydl = YDL({'outtmpl': '-'})
         self.assertEqual(ydl._default_format_spec({}), 'best/bestvideo+bestaudio')
         self.assertEqual(ydl._default_format_spec({}), 'best/bestvideo+bestaudio')