From 497a9b9d581b60e4fad287384807c59615efe830 Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 7 Oct 2025 13:23:28 +0200 Subject: [PATCH] =?UTF-8?q?tests/test=5Fhealthz.py=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_healthz.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_healthz.py diff --git a/tests/test_healthz.py b/tests/test_healthz.py new file mode 100644 index 0000000..fa2c84f --- /dev/null +++ b/tests/test_healthz.py @@ -0,0 +1,11 @@ +from fastapi.testclient import TestClient +from app.main import create_app + +def test_healthz_ok(): + app = create_app() + with TestClient(app) as c: + r = c.get("/healthz") + assert r.status_code == 200 + body = r.json() + assert body["status"] == "ok" + assert "qdrant" in body and "prefix" in body