From: Chris Fulljames Date: Sun, 13 Apr 2025 20:37:08 +0000 (-0400) Subject: Fix jam song submit tests X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=985906b5a4cd87e4d3ab0b9b472a2761a32e0773;p=littlesongplace.git Fix jam song submit tests --- diff --git a/test/utils.py b/test/utils.py index f4d1629..7fc26be 100644 --- a/test/utils.py +++ b/test/utils.py @@ -75,6 +75,8 @@ def upload_song( assert response.headers["Location"] == "None" elif songid: assert response.headers["Location"] == f"/song/{userid}/{songid}?action=view" + elif eventid: + assert response.headers["Location"] == f"/jams/1/events/{eventid}" else: assert response.headers["Location"] == f"/users/{user}"