MCPcopy Create free account
hub / github.com/docling-project/docling-parse / test_render_backpressure

Function test_render_backpressure

tests/test_threaded_render.py:209–217  ·  view source on GitHub ↗

Verify rendering completes correctly with max_concurrent_results=1.

()

Source from the content-addressed store, hash-verified

207
208
209def test_render_backpressure():
210 """Verify rendering completes correctly with max_concurrent_results=1."""
211 filename = LARGE_SAMPLE_PDF
212
213 parser = _make_parser(threads=2, max_concurrent=1)
214 key = parser.load(filename)
215
216 count = sum(1 for result in parser.iterate_results() if result.success)
217 assert count == parser.page_count(key)
218
219
220def test_render_single_thread():

Callers

nothing calls this directly

Calls 4

iterate_resultsMethod · 0.80
page_countMethod · 0.80
_make_parserFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected