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

Function test_render_single_thread

tests/test_threaded_render.py:220–228  ·  view source on GitHub ↗

Render with a single thread as a sequential baseline.

()

Source from the content-addressed store, hash-verified

218
219
220def test_render_single_thread():
221 """Render with a single thread as a sequential baseline."""
222 filename = SAMPLE_PDF
223
224 parser = _make_parser(threads=1, max_concurrent=32)
225 key = parser.load(filename)
226
227 count = sum(1 for result in parser.iterate_results() if result.success)
228 assert count == parser.page_count(key)
229
230
231def test_get_image_raises_without_rendering():

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