test(ocr): exempt native parity requests from cassette replay

This commit is contained in:
Yuneng Jiang 2026-09-11 22:50:39 -07:00
parent 98d46ee59d
commit aecc961016
No known key found for this signature in database

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()