From 51928d44ea020bc7c7fac349ce61e3317c7dd463 Mon Sep 17 00:00:00 2001 From: Ivan Charapanau Date: Fri, 25 Sep 2026 12:04:28 +0000 Subject: [PATCH] test(providers): match the Viktor transcription refusal message --- tests/test_litellm/llms/openai_like/test_viktor_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/openai_like/test_viktor_provider.py b/tests/test_litellm/llms/openai_like/test_viktor_provider.py index 1369cc11157..47f460c1c16 100644 --- a/tests/test_litellm/llms/openai_like/test_viktor_provider.py +++ b/tests/test_litellm/llms/openai_like/test_viktor_provider.py @@ -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