tests/test_healthz.py hinzugefügt
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 4s
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 4s
This commit is contained in:
parent
c5972be618
commit
497a9b9d58
11
tests/test_healthz.py
Normal file
11
tests/test_healthz.py
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user