mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(ci): configure Mock.load_team_config to return dict in proxy_utils test
The test_add_key_or_team_level_spend_logs_metadata_to_request test was failing because proxy_config.load_team_config() returned a bare Mock instead of a dict, causing Mock.keys() to be non-iterable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
07cb6d5bec
commit
e876eaf2a6
1 changed files with 1 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ async def test_add_key_or_team_level_spend_logs_metadata_to_request(
|
|||
team_metadata=team_metadata,
|
||||
)
|
||||
proxy_config = Mock()
|
||||
proxy_config.load_team_config.return_value = {}
|
||||
|
||||
data = {"metadata": {}}
|
||||
if request_tags is not None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue