From aecc96101608e47034d378f90a6a661441cb0009 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Fri, 11 Sep 2026 22:50:39 -0700 Subject: [PATCH] test(ocr): exempt native parity requests from cassette replay --- tests/ocr_tests/conftest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/ocr_tests/conftest.py b/tests/ocr_tests/conftest.py index 259aad5f782..bf03efca744 100644 --- a/tests/ocr_tests/conftest.py +++ b/tests/ocr_tests/conftest.py @@ -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()