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:
Cesar Berrospi Ramis 2025-02-28 16:05:43 +01:00
parent 0cba30e254
commit 70e6b942e1

View File

@ -81,7 +81,7 @@ def test_ordered_lists():
)
)
for pair in test_set:
for idx, pair in enumerate(test_set):
in_doc = InputDocument(
path_or_stream=BytesIO(pair[0]),
format=InputFormat.HTML,
@ -94,7 +94,7 @@ def test_ordered_lists():
)
doc: DoclingDocument = backend.convert()
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():