]> littlesong.place Git - littlesongplace.git/commitdiff
Fix ffmpeg mock
authorChris Fulljames <christianfulljames@gmail.com>
Thu, 24 Jul 2025 11:14:48 +0000 (07:14 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Thu, 24 Jul 2025 11:14:48 +0000 (07:14 -0400)
test/test_songs.py

index dc508a0252fe2e3ff617ba1414edf499ef5f7e74..3fa526f20352c6a9ec181fc89d42a92422538d61 100644 (file)
@@ -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())