Skip to content

Commit

Permalink
. t refactored test
Browse files Browse the repository at this point in the history
  • Loading branch information
isidore committed Oct 28, 2024
1 parent 1a92c96 commit 1a204f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_find_stale_approved_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ def execute_script(directory, log_file):

def test_create_argument_parser():
parser = create_argument_parser()
verify_argument_parser(parser)


def verify_argument_parser(parser: argparse.ArgumentParser) -> None:
parser.formatter_class = lambda prog: argparse.HelpFormatter(
prog, max_help_position=100, width=200
)
verify(
parser.format_help(),
options=Options().with_scrubber(create_regex_scrubber(r"option.*", "options:")),
)
scrubber = create_regex_scrubber(r"option.*", "options:")
verify( parser.format_help(),options=Options().with_scrubber(scrubber),)


def test_find_stale_approved_files():
Expand Down

0 comments on commit 1a204f0

Please sign in to comment.