Files
Metamorph/backend/tests/test_health.py
2026-05-11 06:05:27 +02:00

15 lines
377 B
Python

"""M0 smoke test: the /api/v1/health endpoint returns 200 and the expected payload."""
from __future__ import annotations
from app.main import app
def test_health_returns_ok():
client = app.test_client()
resp = client.get("/api/v1/health")
assert resp.status_code == 200
body = resp.get_json()
assert body["status"] == "ok"
assert "version" in body