mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test(test_llm_guard.py): fix test
This commit is contained in:
parent
f62f642393
commit
4488480188
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,7 @@ async def test_llm_guard_valid_response():
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
user_api_key_dict=user_api_key_dict,
|
||||||
call_type="completion",
|
call_type="completion",
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -88,6 +89,7 @@ async def test_llm_guard_error_raising():
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
user_api_key_dict=user_api_key_dict,
|
||||||
call_type="completion",
|
call_type="completion",
|
||||||
)
|
)
|
||||||
pytest.fail(f"Should have failed - {str(e)}")
|
pytest.fail(f"Should have failed - {str(e)}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue