`all_models = user_api_key_dict.models` was creating an alias, so `_get_models_from_access_groups` (which uses `.pop()`/`.extend()`) would mutate the cached object in-place. Now both `.models` and `.team_models` assignments create copies via `list()`. Added test to verify the input is not mutated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test_auth_checks.py | ||
| test_auth_exception_handler.py | ||
| test_auth_hot_path_network_requests.py | ||
| test_auth_utils.py | ||
| test_cli_auth.py | ||
| test_custom_auth_end_user_budget.py | ||
| test_handle_jwt.py | ||
| test_info_routes.py | ||
| test_litellm_license.py | ||
| test_login_utils.py | ||
| test_mcp_ip_filtering.py | ||
| test_model_checks_fallbacks.py | ||
| test_model_checks.py | ||
| test_object_permission_loading.py | ||
| test_onboarding.py | ||
| test_organization_budget_enforcement.py | ||
| test_route_checks.py | ||
| test_team_member_budget.py | ||
| test_user_api_key_auth.py | ||