mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
test(routing_groups): tighten exception matching in routing group tests
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
7473d8dd1c
commit
1f68b1ab84
1 changed files with 2 additions and 2 deletions
|
|
@ -787,7 +787,7 @@ def test_failed_routing_groups_update_keeps_previous_groups():
|
|||
|
||||
|
||||
def test_overlap_error_names_every_conflicting_model():
|
||||
with pytest.raises(ValueError) as exc_info:
|
||||
with pytest.raises(ValueError, match="appears in") as exc_info:
|
||||
_build_router(
|
||||
routing_groups=[
|
||||
{
|
||||
|
|
@ -834,7 +834,7 @@ def test_unbuildable_group_selector_keeps_previous_groups():
|
|||
)
|
||||
selector = router._group_selectors["g1"]["latency-based-routing"]
|
||||
|
||||
with pytest.raises(Exception):
|
||||
with pytest.raises(ValidationError, match="ttl"):
|
||||
router.update_settings(
|
||||
routing_groups=[
|
||||
{"group_name": "g1", "models": ["filtered-model"], "routing_strategy": "latency-based-routing"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue