Make test_favicon flexible to changing icon sizes, refs #1603

This commit is contained in:
Simon Willison 2022-01-19 21:57:14 -08:00
commit 7c67483f5e

View file

@ -64,7 +64,7 @@ def test_favicon(app_client):
response = app_client.get("/favicon.ico")
assert response.status == 200
assert response.headers["cache-control"] == "max-age=3600, immutable, public"
assert response.headers["content-length"] == "1207"
assert int(response.headers["content-length"]) > 100
assert response.headers["content-type"] == "image/png"