Skip to content

Commit

Permalink
CI/CD error in case of caught exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghesselink committed Jan 29, 2025
1 parent a742ddb commit 46d2cb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 46d2cb1

Please sign in to comment.