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):