test(ocr): narrow mapped failure assertion

This commit is contained in:
Yujong Lee 2026-09-11 08:23:20 -07:00 • committed by yujonglee
parent ac59d465a4
commit f1e4d6d980

View file

@ -220,7 +220,7 @@ async def test_async_ocr_wrapper_sends_final_failure_to_attached_completion(
monkeypatch.setattr("litellm.utils.load_credentials_from_list", MagicMock())
wrapped: Final = client(aocr)
with pytest.raises(ValueError) as caught:
with pytest.raises(ValueError, match="mapped OCR failure") as caught:
await wrapped()
assert caught.value is mapped_error