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:
Claude 2026-11-04 18:13:33 +00:00
parent 8affaa20ef
commit d0a75d28cf
No known key found for this signature in database

View file

@ -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