Merge pull request #40838 from BerriAI/litellm_fix_ocr_native_vcr

test(ocr): exempt native parity requests from cassette replay
This commit is contained in:
yuneng-jiang 2026-09-11 23:01:13 -07:00 committed by GitHub
commit e88ba94da5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@
# Vertex AI OCR) are replayed for 24h. See tests/llm_translation/Readme.md
# for the design overview.
from typing import Final
import pytest
@ -23,7 +24,12 @@ from tests._vcr_conftest_common import ( # noqa: E402,F401
vcr_config_dict,
)
_VCR_INCOMPATIBLE_NODEID_SUFFIXES: tuple[str, ...] = ()
_VCR_INCOMPATIBLE_NODEID_SUFFIXES: Final[tuple[str, ...]] = (
"test_rust_bridge.py::test_native_public_ocr_matches_python[mistral/mistral-ocr-latest-False]",
"test_rust_bridge.py::test_native_public_ocr_matches_python[mistral/mistral-ocr-latest-True]",
"test_rust_bridge.py::test_native_public_ocr_matches_python[azure_ai/doc-intelligence/prebuilt-read-False]",
"test_rust_bridge.py::test_native_public_ocr_matches_python[azure_ai/doc-intelligence/prebuilt-read-True]",
)
_verbose_state = VerboseReporterState()