From 11a515a0251622b791e5cf0797dfe468fa8fc6d4 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 10 Apr 2023 13:13:50 +0200 Subject: [PATCH] Improve error reporting in test_wall_opening.py --- src/ifcopenshell-python/test/test_wall_opening.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/test/test_wall_opening.py b/src/ifcopenshell-python/test/test_wall_opening.py index f331297e73..7f135dcf90 100644 --- a/src/ifcopenshell-python/test/test_wall_opening.py +++ b/src/ifcopenshell-python/test/test_wall_opening.py @@ -232,7 +232,7 @@ class TestWallOpenings: if i == 0 and j == 0: for ln, st in cs: - assert len([l for l in log if l.startswith(st)]) == ln + assert len([l for l in log if l.startswith(st)]) == ln, f"\nOn file:\n - {fn}\nMessages:" + "".join(f'\n - "{l}"' for l in log) + f"\nExpected:\n - \"{st}\"" # breakpoint()