Files
keywarden/tests/test-health.py
boris 262de452e4
Some checks failed
CI / Lint & Format (push) Has been cancelled
CI / Tests (Pytest + Alembic + Postgres) (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
Added tests/ for CI.
2025-09-22 20:23:26 +01:00

11 lines
298 B
Python

#
# Tiny test to pass CI, just checks the health endpoint to ensure API running.
#
from fastapi.testclient import TestClient
from app.main import app
def test_healthz():
client = TestClient(app)
r = client.get("/healthz")
assert r.status_code == 200
assert r.json() == {"ok": True}