Skip to content

Commit

Permalink
removed exception printing by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl11 committed Aug 28, 2024
1 parent be0ce65 commit cd30cf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def save_results(results: Dict[str, Dict[str, Dict[str, Union[True, str]]]], fpa

def print_results(results: Dict[str, Dict[str, Dict[str, Union[True, str]]]],
failed_only: bool = True,
verbose: bool = True) -> None:
verbose: bool = True,
print_exception: bool = False) -> None:
for section_name, section_results in results.items():
print(section_name)
for page_name, page_results in section_results.items():
Expand All @@ -136,6 +137,6 @@ def print_results(results: Dict[str, Dict[str, Dict[str, Union[True, str]]]],
print(" " * 12 + str(i) + ": " + result_str)
if verbose:
print(" " * 12 + codeblock.replace("\n", "\n" + " "*12))
if result is not True:
if result is not True and print_exception:
print(" " * 12 + result)
print("")

0 comments on commit cd30cf1

Please sign in to comment.