From ca6e65fff17acc6b99eb199e1e2681c094171601 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 16 Feb 2024 16:40:24 +0100 Subject: [PATCH] bdd: be more verbose on HTML parsing error --- test/bdd/steps/steps_api_queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bdd/steps/steps_api_queries.py b/test/bdd/steps/steps_api_queries.py index 3d3b16c7..aa1b43b8 100644 --- a/test/bdd/steps/steps_api_queries.py +++ b/test/bdd/steps/steps_api_queries.py @@ -243,7 +243,7 @@ def step_impl(context, fmt): try: tree = ET.fromstring(context.response.page) except Exception as ex: - assert False, f"Could not parse page:\n{context.response.page}" + assert False, f"Could not parse page: {ex}\n{context.response.page}" assert tree.tag == 'html' body = tree.find('./body') -- 2.39.5