From 9d201a74ebcce0d83b01cd377ae968b362b19cad Mon Sep 17 00:00:00 2001 From: mateo Date: Mon, 21 Sep 2026 23:33:22 +0000 Subject: [PATCH] test(proxy): restore saved_configs capture in team default params test Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../proxy/management_endpoints/test_team_default_params.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/proxy/management_endpoints/test_team_default_params.py b/tests/test_litellm/proxy/management_endpoints/test_team_default_params.py index 2f0b3881a4b..40a0a85372f 100644 --- a/tests/test_litellm/proxy/management_endpoints/test_team_default_params.py +++ b/tests/test_litellm/proxy/management_endpoints/test_team_default_params.py @@ -550,6 +550,8 @@ class TestUpdateLitellmSettingOrdering: } }) + saved_configs = [] + async def mock_save_config(new_config=None): saved_configs.append(new_config) @@ -579,7 +581,7 @@ class TestUpdateLitellmSettingOrdering: # Saved config should contain the new value assert len(saved_configs) == 1 - saved_settings = saved_configs[0]["litellm_settings"]["default_team_params"] + saved_settings = saved_configs[0].litellm_settings["default_team_params"] assert saved_settings == expected # Return value should reflect the new settings