Skip to content

Commit d76fe0f

Browse files
committed
🐛 Friendly error messages when adding a model repair test case
1 parent 14cec20 commit d76fe0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/backend/app/test_model_managment_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ async def mock_list_llm_models(*args, **kwargs):
351351

352352
assert response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR
353353
data = response.json()
354-
assert "Failed to retrieve LLM list" in data.get("detail", "")
354+
# Now we return the actual error message
355+
assert "Database connection error" in data.get("detail", "")
355356

356357

357358
@pytest.mark.asyncio

0 commit comments

Comments
 (0)