Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions backend/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ class TestHealthEndpoint:

def test_health_returns_200(self) -> None:
"""Health endpoint should return 200 with status info."""
# TODO: Implement when health route is registered
pass
response = client.get("/health")
assert response.status_code == 200

def test_health_contains_required_fields(self) -> None:
"""Health response should contain status, model_loaded, gpu_available."""
# TODO: Implement
pass
"""Health response should contain status, model_loaded, and nested gpu info."""
response = client.get("/health")
data = response.json()
assert "status" in data
assert "model_loaded" in data
assert "gpu" in data
assert "available" in data["gpu"]


class TestStylesEndpoint:
Expand Down
Loading