mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Fix test_vertex_passthrough_forwards_anthropic_beta_header
This commit is contained in:
parent
8bbbd1e465
commit
8f8ebbec8d
1 changed files with 3 additions and 0 deletions
|
|
@ -253,6 +253,9 @@ async def test_vertex_passthrough_forwards_anthropic_beta_header():
|
|||
"content-length": "1234", # Should be removed
|
||||
"host": "localhost:4000", # Should be removed
|
||||
})
|
||||
# Prevent MagicMock from auto-creating a truthy _cached_headers attribute,
|
||||
# which would short-circuit _safe_get_request_headers before reading .headers
|
||||
mock_request.state._cached_headers = None
|
||||
|
||||
# Create mock vertex credentials
|
||||
mock_vertex_credentials = MagicMock()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue