mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Merge pull request #24258 from joereyna/fix/anthropic-file-content-test-mock
fix(test): mock get_auth_header instead of get_api_key in anthropic file content test
This commit is contained in:
commit
e6e3085845
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ class TestAnthropicFilesHandler:
|
|||
"extra_body": None
|
||||
}
|
||||
|
||||
with patch.object(handler.anthropic_model_info, "get_api_key", return_value=None):
|
||||
with patch.object(handler.anthropic_model_info, "get_auth_header", return_value=None):
|
||||
with pytest.raises(ValueError, match="Missing Anthropic API Key"):
|
||||
await handler.afile_content(
|
||||
file_content_request=file_content_request,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue