Skip to content

Commit

Permalink
test(html): add more info if a test case fails
Browse files Browse the repository at this point in the history
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
  • Loading branch information
ceberam committed Feb 28, 2025
1 parent 0cba30e commit 70e6b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_backend_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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():
Expand Down

0 comments on commit 70e6b94

Please sign in to comment.