mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 15:02:21 +00:00
test(html): add more info if a test case fails
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
This commit is contained in:
parent
0cba30e254
commit
70e6b942e1
@ -81,7 +81,7 @@ def test_ordered_lists():
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
for pair in test_set:
|
for idx, pair in enumerate(test_set):
|
||||||
in_doc = InputDocument(
|
in_doc = InputDocument(
|
||||||
path_or_stream=BytesIO(pair[0]),
|
path_or_stream=BytesIO(pair[0]),
|
||||||
format=InputFormat.HTML,
|
format=InputFormat.HTML,
|
||||||
@ -94,7 +94,7 @@ def test_ordered_lists():
|
|||||||
)
|
)
|
||||||
doc: DoclingDocument = backend.convert()
|
doc: DoclingDocument = backend.convert()
|
||||||
assert doc
|
assert doc
|
||||||
assert doc.export_to_markdown() == pair[1]
|
assert doc.export_to_markdown() == pair[1], f"Error in case {idx}"
|
||||||
|
|
||||||
|
|
||||||
def get_html_paths():
|
def get_html_paths():
|
||||||
|
Loading…
Reference in New Issue
Block a user