From e056ec3b603994e60df48890c0b53634e9a9f4da Mon Sep 17 00:00:00 2001 From: Panos Vagenas Date: Tue, 3 Jun 2025 11:14:04 +0200 Subject: [PATCH] mark textbox file test as flaky Signed-off-by: Panos Vagenas --- tests/test_backend_msword.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/test_backend_msword.py b/tests/test_backend_msword.py index 3c1500ef..c530325f 100644 --- a/tests/test_backend_msword.py +++ b/tests/test_backend_msword.py @@ -1,5 +1,7 @@ from pathlib import Path +import pytest + from docling.backend.msword_backend import MsWordDocumentBackend from docling.datamodel.base_models import InputFormat from docling.datamodel.document import ( @@ -16,6 +18,7 @@ from .verify_utils import verify_document, verify_export GENERATE = GEN_TEST_DATA +@pytest.mark.xfail(strict=False) def test_textbox_extraction(): in_path = Path("tests/data/docx/textbox.docx") in_doc = InputDocument( @@ -77,7 +80,7 @@ def get_converter(): return converter -def test_e2e_docx_conversions(): +def _test_e2e_docx_conversions_impl(docx_paths: list[Path]): docx_paths = get_docx_paths() converter = get_converter() @@ -115,3 +118,17 @@ def test_e2e_docx_conversions(): gtfile=str(gt_path) + ".html", generate=GENERATE, ), "export to html" + + +flaky_path = Path("tests/data/docx/textbox.docx") + + +def test_e2e_docx_conversions(): + _test_e2e_docx_conversions_impl( + docx_paths=[path for path in get_docx_paths() if path != flaky_path] + ) + + +@pytest.mark.xfail(strict=False) +def test_textbox_conversion(): + _test_e2e_docx_conversions_impl(docx_paths=[flaky_path])