You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
457 B
Python

def test_health(client):
res = client.get("/api/health")
assert res.status_code == 200
assert res.json() == {"status": "ok"}
def test_llm_health_shape(client):
"""Ollama on/off 무관하게 200 + 필수 키를 반환해야 한다(서버가 죽지 않음)."""
res = client.get("/api/llm/health")
assert res.status_code == 200
body = res.json()
assert "reachable" in body
assert "model" in body
assert "host" in body