mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(test): mock headers in test_completion_fine_tuned_model
This commit is contained in:
parent
3a6db708ce
commit
1571f5e45a
1 changed files with 2 additions and 1 deletions
|
|
@ -2291,6 +2291,8 @@ def test_prompt_factory_nested():
|
|||
async def test_completion_fine_tuned_model():
|
||||
load_vertex_ai_credentials()
|
||||
mock_response = AsyncMock()
|
||||
mock_response.headers = {}
|
||||
mock_response.status_code = 200
|
||||
|
||||
def return_val():
|
||||
return {
|
||||
|
|
@ -2326,7 +2328,6 @@ async def test_completion_fine_tuned_model():
|
|||
}
|
||||
|
||||
mock_response.json = return_val
|
||||
mock_response.status_code = 200
|
||||
|
||||
expected_payload = {
|
||||
"contents": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue