From: Chris Fulljames Date: Sun, 13 Jul 2025 18:39:13 +0000 (-0400) Subject: Fix song list tests X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=eb6bd422643b94ca058365346910de8d9378ac06;p=littlesongplace.git Fix song list tests --- diff --git a/test/utils.py b/test/utils.py index 7fc26be..dadd464 100644 --- a/test/utils.py +++ b/test/utils.py @@ -85,6 +85,8 @@ def upload_song( def get_song_list_from_page(client, url): response = client.get(url) - matches = re.findall('data-song="(.*)">', response.data.decode()) + print(response.data.decode()) + matches = re.findall(r'data-song="(.*)"\s*>', response.data.decode()) + print(matches) return [json.loads(html.unescape(m)) for m in matches]