From 34a04387644dedda371be87fd9297bdc43175ba9 Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 12 Jul 2026 10:29:43 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20tests=20health=20=E2=80=94=20utilise=20a?= =?UTF-8?q?pp.version=20au=20lieu=20de=20version=20hardcod=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_app.py b/tests/test_app.py index d05e8af..7a608b3 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -34,7 +34,8 @@ def test_health(client): data = resp.json() assert "status" in data assert data["db"] is True - assert data["version"] == "2.1.0" + from app.main import app + assert data["version"] == app.version def test_dashboard(client): @@ -190,8 +191,9 @@ def test_csrf_protects_sync(client): # ── v1.0.0: Production ── def test_version_in_health(client): + from app.main import app resp = client.get("/api/health") - assert resp.json()["version"] == "2.1.0" + assert resp.json()["version"] == app.version def test_db_tables_exist(client):