mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
test(gemini): fix fallback handler patch targets
This commit is contained in:
parent
0872a655fd
commit
05ceff8391
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ def test_run_gemini_completion_with_code_assist_fallback_disabled():
|
|||
return_value=True,
|
||||
),
|
||||
patch(
|
||||
"litellm.llms.gemini.fallback_handler.GoogleCodeAssistChat.completion"
|
||||
"litellm.llms.gemini.fallback_handler._google_code_assist_chat.completion"
|
||||
) as mock_completion,
|
||||
):
|
||||
with pytest.raises(Exception, match="ACCESS_TOKEN_SCOPE_INSUFFICIENT"):
|
||||
|
|
@ -42,7 +42,7 @@ async def test_run_gemini_acompletion_with_code_assist_fallback_enabled():
|
|||
return_value=True,
|
||||
),
|
||||
patch(
|
||||
"litellm.llms.gemini.fallback_handler.GoogleCodeAssistChat.acompletion",
|
||||
"litellm.llms.gemini.fallback_handler._google_code_assist_chat.acompletion",
|
||||
new_callable=AsyncMock,
|
||||
) as mock_acompletion,
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue