From: Chris Fulljames Date: Thu, 6 Feb 2025 22:06:50 +0000 (-0500) Subject: Fix PFP tests X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=e675007a808e91fef921c9d1b80f1895636d9f31;p=littlesongplace.git Fix PFP tests --- diff --git a/test/test_offline.py b/test/test_offline.py index 6decc13..73178ad 100644 --- a/test/test_offline.py +++ b/test/test_offline.py @@ -187,8 +187,8 @@ def test_get_pfp(client): response = client.get("/pfp/1") assert response.status_code == 200 - with open("lsp_notes.png", "rb") as expected: - assert expected.read() == response.data + assert response.mimetype == "image/png" + # Can't check image file, since site has modified it def test_get_pfp_no_file(client): _create_user(client, "user", "password", login=True) diff --git a/todo.txt b/todo.txt index 302168e..5b52ddd 100644 --- a/todo.txt +++ b/todo.txt @@ -1,5 +1,4 @@ NOW -- Fix pfp test - Site color customization - YouTube importer