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