mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:27:07 -05:00 
			
		
		
		
	[test_YoutubeDL] Fix typo (closes #14856)
This commit is contained in:
		@@ -466,11 +466,11 @@ class TestFormatSelection(unittest.TestCase):
 | 
			
		||||
        ydl = YDL({'simulate': True})
 | 
			
		||||
        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': '-'})
 | 
			
		||||
        self.assertEqual(ydl._default_format_spec({}), 'best/bestvideo+bestaudio')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user