]> littlesong.place Git - littlesongplace.git/commitdiff
Fix jam song submit tests
authorChris Fulljames <christianfulljames@gmail.com>
Sun, 13 Apr 2025 20:37:08 +0000 (16:37 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Sun, 13 Apr 2025 20:37:08 +0000 (16:37 -0400)
test/utils.py

index f4d1629c493ca510f12593b082ea9f22589b1781..7fc26bea1741f35e3009ea9cad6ba35b323eaa56 100644 (file)
@@ -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}"