mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
test: mark timeout test as manual due to model requirement
The test requires pre-downloaded models from HuggingFace. Added skip marker and comprehensive docstring explaining the test purpose. Co-authored-by: cau-git <60343111+cau-git@users.noreply.github.com>
This commit is contained in:
@@ -17,8 +17,18 @@ from docling.pipeline.standard_pdf_pipeline import StandardPdfPipeline
|
|||||||
from docling.pipeline.threaded_standard_pdf_pipeline import ThreadedStandardPdfPipeline
|
from docling.pipeline.threaded_standard_pdf_pipeline import ThreadedStandardPdfPipeline
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="Requires models to be pre-downloaded; run manually to verify timeout behavior")
|
||||||
def test_standard_pipeline_document_timeout():
|
def test_standard_pipeline_document_timeout():
|
||||||
"""Test that StandardPdfPipeline respects document_timeout"""
|
"""Test that StandardPdfPipeline respects document_timeout
|
||||||
|
|
||||||
|
This test verifies that when document_timeout is set, the pipeline will:
|
||||||
|
1. Stop processing after the timeout period
|
||||||
|
2. Return PARTIAL_SUCCESS status
|
||||||
|
3. Return successfully processed pages
|
||||||
|
|
||||||
|
Note: This test requires layout models to be pre-downloaded from HuggingFace.
|
||||||
|
It can be run manually with: pytest tests/test_threaded_pipeline.py::test_standard_pipeline_document_timeout -v
|
||||||
|
"""
|
||||||
test_file = "tests/data/pdf/2203.01017v2.pdf" # Large file to ensure timeout can occur
|
test_file = "tests/data/pdf/2203.01017v2.pdf" # Large file to ensure timeout can occur
|
||||||
|
|
||||||
# Configure pipeline with very short timeout
|
# Configure pipeline with very short timeout
|
||||||
|
|||||||
Reference in New Issue
Block a user