From: Chris Fulljames Date: Sun, 23 Mar 2025 12:19:51 +0000 (-0400) Subject: Fix online tests X-Git-Url: https://littlesong.place/gitweb/gitweb.cgi?a=commitdiff_plain;h=011a8f26de6af3a5fb0fa1b6ae9de5ac2d4b4634;p=littlesongplace.git Fix online tests --- diff --git a/test/test_online.py b/test/test_online.py index 0b9dd15..e441411 100644 --- a/test/test_online.py +++ b/test/test_online.py @@ -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