From 6097102c2130dc89a40bcfa2bf86904545f91a9b Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 29 Jan 2024 15:27:25 -0800 Subject: [PATCH] (test) /health/readiness --- tests/test_health.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_health.py b/tests/test_health.py index f0a89f529..00f095022 100644 --- a/tests/test_health.py +++ b/tests/test_health.py @@ -70,10 +70,11 @@ async def test_health_readiness(): url = "http://0.0.0.0:4000/health/readiness" async with session.get(url) as response: status = response.status - response_text = await response.text() + response_json = await response.json() - print(response_text) - print() + print(response_json) + assert "litellm_version" in response_json + assert "status" in response_json if status != 200: raise Exception(f"Request did not return a 200 status code: {status}")