Files
keywarden/tests/test_health.py
boris ef947d9888
Some checks failed
CI / Lint & Format (push) Successful in 3s
CI / Tests (Pytest + Alembic + Postgres) (push) Failing after 4m44s
CI / Docker Build (push) Has been skipped
Migrated CI health test to new JSON. Refactored NGINX config
2025-09-30 12:39:49 +01:00

13 lines
315 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("/readyz")
assert r.status_code == 200
assert r.json() == {"status": "ok", "db": "up"}