]> littlesong.place Git - littlesongplace.git/commitdiff
Fix online upload tests
authorChris Fulljames <christianfulljames@gmail.com>
Sat, 8 Feb 2025 22:01:45 +0000 (17:01 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Sat, 8 Feb 2025 22:01:45 +0000 (17:01 -0500)
test/test_online.py

index 292c735c430c6bc4333399a0a57e8351ff515017..0b9dd1502d3d7033db0ac0e0c46fa0aaac7544ab 100644 (file)
@@ -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()