diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 2e23473f6..7048f6e66 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -522,7 +522,7 @@ def test_format_filtering(self): pass self.assertEqual(ydl.downloaded_info_dicts, []) - @patch('yt_dlp.postprocessor.ffmpeg.FFmpegMergerPP.available', False) + @patch('yt_dlp.YoutubeDL.FFmpegMergerPP.available', False) def test_default_format_spec_without_ffmpeg(self): ydl = YDL({}) self.assertEqual(ydl._default_format_spec({}), 'best/bestvideo+bestaudio') @@ -543,8 +543,8 @@ def test_default_format_spec_without_ffmpeg(self): self.assertEqual(ydl._default_format_spec({}, download=False), 'bestvideo*+bestaudio/best') 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) + @patch('yt_dlp.YoutubeDL.FFmpegMergerPP.available', True) + @patch('yt_dlp.YoutubeDL.FFmpegMergerPP.can_merge', lambda _: True) def test_default_format_spec_with_ffmpeg(self): ydl = YDL({}) self.assertEqual(ydl._default_format_spec({}), 'bestvideo*+bestaudio/best')