mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
test(providers): match the Viktor transcription refusal message
This commit is contained in:
parent
4d0467a795
commit
51928d44ea
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ def test_router_deployment_reaches_viktor(viktor_http: respx.MockRouter, base_ur
|
|||
def test_transcription_is_refused_without_calling_viktor(viktor_http: respx.MockRouter) -> None:
|
||||
catch_all = viktor_http.route().mock(return_value=httpx.Response(500))
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(ValueError, match="Unmapped provider"):
|
||||
litellm.transcription(model="viktor/viktor", file=("a.wav", b"RIFF", "audio/wav"))
|
||||
|
||||
assert not catch_all.called
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue