]> littlesong.place Git - littlesongplace.git/commitdiff
Fix PFP tests
authorChris Fulljames <christianfulljames@gmail.com>
Thu, 6 Feb 2025 22:06:50 +0000 (17:06 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Thu, 6 Feb 2025 22:06:50 +0000 (17:06 -0500)
test/test_offline.py
todo.txt

index 6decc137bf8ffd6b975328d18777f6f36b4946a9..73178ada925ca4762ab8e339bc96df9443762040 100644 (file)
@@ -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)
index 302168ee7c547cf5a7b2b266038d969dd5a04f43..5b52ddda4e6c91073b60cd442e1248498122f286 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -1,5 +1,4 @@
 NOW
-- Fix pfp test
 - Site color customization
 - YouTube importer