From 46d2cb101c05e2bc192eae0aefbbc9f5e200e1f1 Mon Sep 17 00:00:00 2001 From: Geert Hesselink Date: Wed, 29 Jan 2025 17:21:01 +0100 Subject: [PATCH] CI/CD error in case of caught exceptions --- test/test_main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_main.py b/test/test_main.py index 0b27f91c..dec9f8d4 100644 --- a/test/test_main.py +++ b/test/test_main.py @@ -109,11 +109,11 @@ def wrap_text(text, width): print(tabulate.tabulate(table_data, headers=headers, tablefmt='fancy_grid')) if base.startswith('fail'): - assert len(error_outcomes) > 0 or caught_exceptions + assert len(error_outcomes) > 0 elif base.startswith('pass'): - assert len(error_outcomes) == 0 and len(activating_outcomes) > 0 + assert len(error_outcomes) == 0 and len(activating_outcomes) and not caught_exceptions > 0 elif base.startswith('na'): - assert len(error_outcomes) == 0 and len(activating_outcomes) == 0 + assert len(error_outcomes) == 0 and len(activating_outcomes) == 0 and not caught_exceptions if error_outcomes: tabulate_results = [