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",
# 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()