mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-09 05:08:14 +00:00
add tests for code coverage for rapidocr
This commit is contained in:
@@ -74,6 +74,16 @@ def test_e2e_conversions():
|
|||||||
if sys.version_info < (3, 13):
|
if sys.version_info < (3, 13):
|
||||||
engines.append((RapidOcrOptions(), False))
|
engines.append((RapidOcrOptions(), False))
|
||||||
engines.append((RapidOcrOptions(force_full_page_ocr=True), False))
|
engines.append((RapidOcrOptions(force_full_page_ocr=True), False))
|
||||||
|
engines.append(
|
||||||
|
(
|
||||||
|
RapidOcrOptions(
|
||||||
|
force_full_page_ocr=True,
|
||||||
|
rec_font_path="test",
|
||||||
|
rapidocr_params={"rec_font_path": None},
|
||||||
|
),
|
||||||
|
False,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
# only works on mac
|
# only works on mac
|
||||||
if "darwin" == sys.platform:
|
if "darwin" == sys.platform:
|
||||||
|
|||||||
Reference in New Issue
Block a user