mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
Validate conversion status on e2e test
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
parent
2cc940fbfa
commit
07ec034f1c
@ -139,10 +139,10 @@ def test_e2e_conversions():
|
|||||||
for path in pdf_paths:
|
for path in pdf_paths:
|
||||||
print(f"converting {path}")
|
print(f"converting {path}")
|
||||||
|
|
||||||
try:
|
|
||||||
doc_result: ConversionResult = converter.convert_single(path)
|
doc_result: ConversionResult = converter.convert_single(path)
|
||||||
except:
|
assert (
|
||||||
continue
|
doc_result.status == ConversionStatus.SUCCESS
|
||||||
|
), f"Doc {path} did not convert successfully."
|
||||||
|
|
||||||
doc_pred_pages: PageList = doc_result.pages
|
doc_pred_pages: PageList = doc_result.pages
|
||||||
doc_pred: DsDocument = doc_result.output
|
doc_pred: DsDocument = doc_result.output
|
||||||
|
Loading…
Reference in New Issue
Block a user