mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
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.
This commit is contained in:
parent
660203a99b
commit
1d0dc56b1b
1 changed files with 1 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue