mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
test(router): narrow the failed-pick raise to the no-healthy-deployments error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FDwtoMjnHa4xxazGJJNSm
This commit is contained in:
parent
8affaa20ef
commit
d0a75d28cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1126,7 +1126,7 @@ async def test_a_failed_pick_stamps_no_deployment() -> None:
|
|||
],
|
||||
)
|
||||
|
||||
with pytest.raises(Exception) as raised:
|
||||
with pytest.raises(litellm.BadRequestError, match="no healthy deployments") as raised:
|
||||
await router._aembedding(input=["hi"], model="no-such-model")
|
||||
|
||||
assert getattr(raised.value, "failed_deployment_id", None) is None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue