mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-04 15:38:14 +02:00
Refactor tests to improve logging configuration and enhance video renumbering logic
This commit is contained in:
1 parent
4a56c03b62
commit
6ccb869c3c
3 files changed
+43
-22
No files matched your search
@@ -24,8 +24,8 @@ def test_download_video_both_mode_ffmpeg_missing(monkeypatch, tmp_path, caplog):
|
||||
video = {"id": "X1", "title": "Test"}
|
||||
|
||||
# monkeypatch _run to simulate successful video download and ffmpeg extraction failure path
|
||||
def fake_run(args, check=True, stdout=None, stderr=None, text=None):
|
||||
# simulate successful yt-dlp or ffmpeg calls by returning a simple object
|
||||
def fake_run(*args, **kwargs):
|
||||
# accept label or other kwargs; simulate successful call
|
||||
return subprocess.CompletedProcess(args, 0)
|
||||
|
||||
monkeypatch.setattr(PlaylistDownloader, "_run", fake_run)
|
||||
|
||||
Reference in new issue
Block a user