Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XGaEeS4wbkMHuVXmz5fqkh
14 lines
473 B
Python
14 lines
473 B
Python
from fastapi.testclient import TestClient
|
|
from app.main import app, ICONES
|
|
|
|
|
|
def test_icones_servies_sans_jeton():
|
|
c = TestClient(app)
|
|
for nom in ICONES:
|
|
r = c.get("/" + nom)
|
|
assert r.status_code == 200, nom
|
|
assert len(r.content) > 100, nom
|
|
assert c.get("/favicon.ico").content[:4] == b"\x00\x00\x01\x00"
|
|
assert c.get("/apple-touch-icon.png").content[:8] == b"\x89PNG\r\n\x1a\n"
|
|
assert b"1D4F7C" in c.get("/favicon.svg").content
|