mirror of https://github.com/yt-dlp/yt-dlp.git
Also mock `can_merge`
While `can_merge` currently always returns `True`, I think it's better to mock this to not call `FFmpegMergerPP`
This commit is contained in:
parent
a29030c463
commit
0795c53fcc
|
@ -544,6 +544,7 @@ class TestFormatSelection(unittest.TestCase):
|
|||
self.assertEqual(ydl._default_format_spec({'is_live': True}), 'best/bestvideo+bestaudio')
|
||||
|
||||
@patch('yt_dlp.postprocessor.ffmpeg.FFmpegMergerPP.available', True)
|
||||
@patch('yt_dlp.postprocessor.ffmpeg.FFmpegMergerPP.can_merge', lambda _: True)
|
||||
def test_default_format_spec_with_ffmpeg(self):
|
||||
ydl = YDL({})
|
||||
self.assertEqual(ydl._default_format_spec({}), 'bestvideo*+bestaudio/best')
|
||||
|
|
Loading…
Reference in New Issue