]> littlesong.place Git - littlesongplace.git/commitdiff
Fix song list tests
authorChris Fulljames <christianfulljames@gmail.com>
Sun, 13 Jul 2025 18:39:13 +0000 (14:39 -0400)
committerChris Fulljames <christianfulljames@gmail.com>
Sun, 13 Jul 2025 18:39:13 +0000 (14:39 -0400)
test/utils.py

index 7fc26bea1741f35e3009ea9cad6ba35b323eaa56..dadd4643d87b98e5659a09a997025b70b85833ec 100644 (file)
@@ -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]