From ce2ac08dd308d32f6a20a48ddb776cd387a86aa1 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 28 Oct 2026 13:51:31 -0400 Subject: [PATCH] Chantier 5 (fusion #69/#71) : alertes en onglets + onglet Console Spark : test pytest chantier 5 --- tests/test_draco_alertes.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/test_draco_alertes.py b/tests/test_draco_alertes.py index 86c08f6..bbee83f 100644 --- a/tests/test_draco_alertes.py +++ b/tests/test_draco_alertes.py @@ -1,4 +1,4 @@ -"""Fusion #69 — Alertes unifiées (chantier 2, Flowdeck). +"""Fusion #69 — Alertes unifiées (chantier 2 + chantier 5, Flowdeck). Source réelle de Flowdeck : GET /api/notifications (non lues = actives, `url` relative pour le lien profond), déjà exposée et @@ -61,3 +61,24 @@ def test_notifications_api_et_cors_soeur(client): headers={"Origin": "https://evil.example", "Access-Control-Request-Method": "GET"}) assert "access-control-allow-origin" not in r4.headers + + +def test_chantier5_onglet_console_spark_et_alertes_onglets(client): + """Chantier 5 : onglet Console Spark en dernier dans la barre + (gabarit lu, pages authentifiées inatteignables en sandbox comme + pour le test #69), et vue Alertes en onglets (module + styles).""" + from pathlib import Path + + gabarit = Path("app/templates/_draco_bar.html").read_text() + nav = gabarit.split('