test(ocr): narrow mapped failure assertion

This commit is contained in:
Yujong Lee 2026-09-11 08:23:20 -07:00 • committed by GitHub
parent 2dafe7e538
commit 10fbe4048f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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