mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
test(proxy): opt mock-response fixtures into client mocks
This commit is contained in:
parent
7497674661
commit
7c3c9ab7ef
1 changed files with 7 additions and 2 deletions
|
|
@ -1843,7 +1843,10 @@ async def test_add_litellm_metadata_from_request_headers():
|
|||
|
||||
# Create mock user API key dict
|
||||
mock_user_api_key_dict = UserAPIKeyAuth(
|
||||
api_key="test-key", user_id="test-user", org_id="test-org"
|
||||
api_key="test-key",
|
||||
user_id="test-user",
|
||||
org_id="test-org",
|
||||
metadata={"allow_client_mock_response": True},
|
||||
)
|
||||
|
||||
# Create mock proxy logging object
|
||||
|
|
@ -1956,7 +1959,9 @@ async def test_anthropic_messages_standard_logging_object_matches_fixture():
|
|||
|
||||
mock_fastapi_response = MagicMock(spec=Response)
|
||||
mock_user_api_key_dict = UserAPIKeyAuth(
|
||||
api_key="test-key", user_id="default_user_id"
|
||||
api_key="test-key",
|
||||
user_id="default_user_id",
|
||||
metadata={"allow_client_mock_response": True},
|
||||
)
|
||||
|
||||
mock_proxy_logging_obj = MagicMock(spec=ProxyLogging)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue