]> littlesong.place Git - littlesongplace.git/commitdiff
Fix online tests
authorChris Fulljames <christianfulljames@gmail.com>
Sun, 23 Mar 2025 12:19:51 +0000 (08:19 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Sun, 23 Mar 2025 12:19:51 +0000 (08:19 -0400)
test/test_online.py

index 0b9dd1502d3d7033db0ac0e0c46fa0aaac7544ab..e441411888f9c0a216ef5d93426ac6f8b0c60dc3 100644 (file)
@@ -65,18 +65,19 @@ def test_comments_and_activity(s):
     songs = _get_song_list_from_page(response.text)
     song = songs[0]
     songid = song["songid"]
+    threadid = song["threadid"]
 
     try:
         _login(s, "user1", "1234asdf!@#$")
 
         # Comment on song as new user
         response = s.get(
-                url(f"/comment?songid={songid}"),
+                url(f"/comment?threadid={threadid}"),
                 headers={"referer": "/users/user"})
         response.raise_for_status()
         response = s.post(
-                url(f"/comment?songid={songid}"),
-                headers={"referer": f"/comment?songid={songid}"},
+                url(f"/comment?threadid={threadid}"),
+                headers={"referer": f"/comment?threadid={threadid}"},
                 data={"content": "hey cool song"})
         response.raise_for_status()
         assert "hey cool song" in response.text