Skip to content

Commit

Permalink
Truncate assertion strings to avoid terminal color encoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ndejong committed Jan 21, 2024
1 parent 54004b6 commit e19d11b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_02_exec/test_exec_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def test_exec_help_output01():

stdout, stderr, rc = exec_command("hibp-downloader", args=args)

assert "--data-path" in stdout.decode()
assert "--metadata-path" not in stdout.decode()
assert "-data" in stdout.decode()
assert "-metadata" not in stdout.decode()


def test_exec_help_output02():
Expand All @@ -24,5 +24,5 @@ def test_exec_help_output02():

stdout, stderr, rc = exec_command("hibp-downloader", args=args)

assert "--data-path" in stdout.decode()
assert "--metadata-path" in stdout.decode()
assert "-data" in stdout.decode()
assert "-metadata" in stdout.decode()

0 comments on commit e19d11b

Please sign in to comment.