From 1d0dc56b1b5c27811d04c67015485b804742c3c5 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Wed, 9 Sep 2026 21:26:25 -0700 Subject: [PATCH] test(pass_through): mark the mocked auth object as a plain key The logged key follows the alias only for a session token; a bare MagicMock reads as one, so the test names the field it relies on. --- .../proxy/pass_through_endpoints/test_pass_through_endpoints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py b/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py index d57bed430c1..6aeab4fffab 100644 --- a/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py +++ b/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py @@ -1318,6 +1318,7 @@ async def test_pass_through_request_contains_proxy_server_request_in_kwargs(): mock_user_api_key_dict = MagicMock() mock_user_api_key_dict.api_key = "test-api-key" mock_user_api_key_dict.key_alias = "test-alias" + mock_user_api_key_dict.is_session_token = False mock_user_api_key_dict.user_email = "test@example.com" mock_user_api_key_dict.user_id = "test-user-id" mock_user_api_key_dict.team_id = "test-team-id"