diff --git a/app/static/icons/apple-touch-icon.png b/app/static/icons/apple-touch-icon.png new file mode 100644 index 0000000..6a98518 Binary files /dev/null and b/app/static/icons/apple-touch-icon.png differ diff --git a/app/static/icons/favicon-16.png b/app/static/icons/favicon-16.png new file mode 100644 index 0000000..a9a5ffa Binary files /dev/null and b/app/static/icons/favicon-16.png differ diff --git a/app/static/icons/favicon-32.png b/app/static/icons/favicon-32.png new file mode 100644 index 0000000..7f15f55 Binary files /dev/null and b/app/static/icons/favicon-32.png differ diff --git a/app/static/icons/favicon-48.png b/app/static/icons/favicon-48.png new file mode 100644 index 0000000..a5929a6 Binary files /dev/null and b/app/static/icons/favicon-48.png differ diff --git a/app/static/icons/favicon.ico b/app/static/icons/favicon.ico new file mode 100644 index 0000000..bc9c105 Binary files /dev/null and b/app/static/icons/favicon.ico differ diff --git a/app/static/icons/favicon.svg b/app/static/icons/favicon.svg new file mode 100644 index 0000000..ba430dc --- /dev/null +++ b/app/static/icons/favicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/app/static/icons/icon-192.png b/app/static/icons/icon-192.png new file mode 100644 index 0000000..dac1395 Binary files /dev/null and b/app/static/icons/icon-192.png differ diff --git a/app/static/icons/icon-512.png b/app/static/icons/icon-512.png new file mode 100644 index 0000000..c548f52 Binary files /dev/null and b/app/static/icons/icon-512.png differ diff --git a/app/static/icons/safari-pinned-tab.svg b/app/static/icons/safari-pinned-tab.svg new file mode 100644 index 0000000..dc864ec --- /dev/null +++ b/app/static/icons/safari-pinned-tab.svg @@ -0,0 +1,4 @@ + + + + diff --git a/tests/test_icons.py b/tests/test_icons.py new file mode 100644 index 0000000..7a6becd --- /dev/null +++ b/tests/test_icons.py @@ -0,0 +1,13 @@ +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