From: Chris Fulljames Date: Sat, 8 Feb 2025 22:01:45 +0000 (-0500) Subject: Fix online upload tests X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=d50322795247cd4dfd9157bf067333fc47eec5fa;p=littlesongplace.git Fix online upload tests --- diff --git a/test/test_online.py b/test/test_online.py index 292c735..0b9dd15 100644 --- a/test/test_online.py +++ b/test/test_online.py @@ -29,7 +29,7 @@ def _get_song_list_from_page(page_contents): def test_upload_and_delete_song(s): response = s.post( url("/upload-song"), - files={"song": open("sample-3s.mp3", "rb")}, + files={"song-file": open("sample-3s.mp3", "rb")}, data={ "title": "song title", "description": "song description", @@ -58,7 +58,7 @@ def test_comments_and_activity(s): # Upload song response = s.post( url("/upload-song"), - files={"song": open("sample-3s.mp3", "rb")}, + files={"song-file": open("sample-3s.mp3", "rb")}, data={"title": "song title", "description": "", "tags": "", "collabs": ""}, ) response.raise_for_status()