Skip to content

Commit

Permalink
test: Add more tests for spelling mistakes of cli arguments in tests/…
Browse files Browse the repository at this point in the history
…test_main.py.
  • Loading branch information
gkapfham committed Nov 21, 2024
1 parent 5321a32 commit bedf818
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,16 @@ def test_run_invalid_report_argument():
assert result.exit_code != 0


def test_invalid_tldr_spelling():
"""Test the run command with invalid tldr command-line argument spelling."""
result = runner.invoke(main.cli, ["run", ". tests/", "--tldear"])
assert result.exit_code != 0


def test_invalid_help_spelling():
"""Test the run command with invalid help command-line argument spelling."""
result = runner.invoke(main.cli, ["run", ". tests/", "--hlp"])
assert result.exit_code != 0


# }}}

0 comments on commit bedf818

Please sign in to comment.