From 70e6b942e16b18fe937d2365eac233d8927f99d6 Mon Sep 17 00:00:00 2001 From: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Date: Fri, 28 Feb 2025 16:05:43 +0100 Subject: [PATCH] test(html): add more info if a test case fails Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> --- tests/test_backend_html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_backend_html.py b/tests/test_backend_html.py index a04ae219..29518682 100644 --- a/tests/test_backend_html.py +++ b/tests/test_backend_html.py @@ -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():