feat(courrier): vue Groupes sur 7/30 jours, reperes d etiquettes du miroir, statiques no-cache (tt-2026-11-063)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGaEeS4wbkMHuVXmz5fqkh
This commit is contained in:
gemini-opsandClaude Sonnet 5.5 committed 2026-11-17 22:15:38 +01:00
1 parent ab51591f54
commit 71262d927e
6 files changed
+143 -11

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
from pathlib import Path
from fastapi.testclient import TestClient
from app.main import app
STATIC = Path(__file__).resolve().parent.parent / "app" / "static"
def test_periode_exige_jeton():
assert TestClient(app).get("/api/v1/mails/periode?jours=7").status_code == 401
def test_vue_groupes_presente():
js = (STATIC / "app.js").read_text(encoding="utf-8")
assert "vueGroupes" in js and "/mails/periode" in js and "etiquettes" in js
assert "innerHTML" not in js
def test_statiques_sans_cache_navigateur():
r = TestClient(app).get("/static/app.css")
assert r.headers["cache-control"] == "no-cache"