From 4a6b7d09dcf43ddac40496d58fa21344ca5efece Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 20:07:26 +0000 Subject: [PATCH] test(router): cover dropped deployment cleanup Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/test_litellm/router_strategy/test_complexity_router.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_litellm/router_strategy/test_complexity_router.py b/tests/test_litellm/router_strategy/test_complexity_router.py index 2db079167d0..0b67131d1ff 100644 --- a/tests/test_litellm/router_strategy/test_complexity_router.py +++ b/tests/test_litellm/router_strategy/test_complexity_router.py @@ -1451,6 +1451,11 @@ class TestRouterComplexityDeploymentMethods: assert router.upsert_deployment(Deployment(**self._router_row("v2-b", "id-b", "heuristic"))) is not None assert "id-b" not in router.dropped_deployments + assert router.upsert_deployment(Deployment(**self._router_row("v2-b", "id-b", "heuristic_v2"))) is None + assert "id-b" in router.dropped_deployments + assert router.delete_deployment(id="id-b") is not None + assert "id-b" not in router.dropped_deployments + def test_heuristic_v2_ceiling_raises_without_ignore_invalid_deployments(self) -> None: with pytest.raises(ValueError, match="At most 1 auto-router"): Router(