Docuask / backend /tests /test_server.py
Claude
Bump to 0.2.0 and expose version + llm_enabled on /health
282bc7c unverified
Raw
History Blame Contribute Delete
463 Bytes
"""Tests for the combined deploy entrypoint (Session 5).
Ensures the API is reachable under the /api prefix the frontend expects when
both are served from one origin (Hugging Face Space).
"""
from fastapi.testclient import TestClient
from app.server import root
client = TestClient(root)
def test_api_is_mounted_under_api_prefix():
response = client.get("/api/health")
assert response.status_code == 200
assert response.json()["status"] == "ok"