mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
test(ocr): narrow mapped failure assertion
This commit is contained in:
parent
ac59d465a4
commit
f1e4d6d980
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue