mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
test: fix assert string on test
This commit is contained in:
parent
65097d595c
commit
60381ffcdd
1 changed files with 3 additions and 1 deletions
|
|
@ -1225,7 +1225,9 @@ async def test_using_default_fallback(sync_mode):
|
|||
pytest.fail(f"Expected call to fail we passed model=openai/foo")
|
||||
except Exception as e:
|
||||
print("got exception = ", e)
|
||||
assert "No healthy deployment available, passed model=very-bad-model" in str(e)
|
||||
from litellm.types.router import RouterErrors
|
||||
|
||||
assert RouterErrors.no_deployments_available.value in str(e)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("sync_mode", [False])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue