Step 5 implemented

This commit is contained in:
Jim Lancaster
2026-06-25 10:00:00 -05:00
parent abf5829c6b
commit 3e057c0eff
15 changed files with 1796 additions and 33 deletions
+21
View File
@@ -0,0 +1,21 @@
"""Tests for transcription.api.health."""
from fastapi import FastAPI
from fastapi.testclient import TestClient
from transcription.api.health import router
class TestHealthEndpoint:
"""Verify /healthz endpoint behavior."""
def test_healthz_returns_ok_status(self):
"""GET /healthz returns a healthy status payload."""
app = FastAPI()
app.include_router(router)
client = TestClient(app)
response = client.get("/healthz")
assert response.status_code == 200
assert response.json() == {"status": "ok"}