From: Chris Fulljames Date: Thu, 24 Jul 2025 11:14:48 +0000 (-0400) Subject: Fix ffmpeg mock X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=ebc38d395c0ef454eb00764c0381d076c1fd7e6c;p=littlesongplace.git Fix ffmpeg mock --- diff --git a/test/test_songs.py b/test/test_songs.py index dc508a0..3fa526f 100644 --- a/test/test_songs.py +++ b/test/test_songs.py @@ -14,7 +14,7 @@ def _create_fake_mp3_and_return(returncode): if subprocess_args[0] == "ffmpeg": # Create "fake" mp3 file by just copying input file output_filename = subprocess_args[-1] - input_filename = subprocess_args[-2] + input_filename = subprocess_args[2] with open(input_filename, "rb") as infile, open(output_filename, "wb") as outfile: outfile.write(infile.read())