From 47694f2e5d9f8a6355899e272bcaa8ccbdbe5893 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Thu, 9 Jul 2026 20:18:28 +0200 Subject: [PATCH] =?UTF-8?q?test(mcp):=20v=C3=A9rifier=20l'extraction=20HTM?= =?UTF-8?q?L->texte=20plain=20du=20nom=20(revue=20Task=204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/mcp/test_queries.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/mcp/test_queries.py b/tests/mcp/test_queries.py index 8dce3ad..7f19ac4 100644 --- a/tests/mcp/test_queries.py +++ b/tests/mcp/test_queries.py @@ -29,6 +29,9 @@ def test_search_organisations_finds_known_acheteur(): assert any(r["id"] == "123" for r in result) first = next(r for r in result if r["id"] == "123") assert set(first.keys()) == {"id", "nom", "departement"} + # Vérifier que le nom a été extrait en texte plain (HTML strippé) + assert first["nom"] == "ACHETEUR 1" + assert "<" not in first["nom"] # Défense : aucun markup HTML ne s'échappe def test_search_organisations_invalid_type_raises():