mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
test(test_completion.py): fix test
This commit is contained in:
parent
7311e82f47
commit
7c1e2bf01c
1 changed files with 0 additions and 4 deletions
|
@ -97,8 +97,6 @@ def test_null_role_response():
|
||||||
"""
|
"""
|
||||||
import openai
|
import openai
|
||||||
|
|
||||||
litellm.success_callback = ["lunary"]
|
|
||||||
|
|
||||||
openai_client = openai.OpenAI()
|
openai_client = openai.OpenAI()
|
||||||
with patch.object(
|
with patch.object(
|
||||||
openai_client.chat.completions, "create", side_effect=_openai_mock_response
|
openai_client.chat.completions, "create", side_effect=_openai_mock_response
|
||||||
|
@ -114,8 +112,6 @@ def test_null_role_response():
|
||||||
|
|
||||||
assert response.choices[0].message.role == "assistant"
|
assert response.choices[0].message.role == "assistant"
|
||||||
|
|
||||||
assert False
|
|
||||||
|
|
||||||
|
|
||||||
def test_completion_azure_command_r():
|
def test_completion_azure_command_r():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue