Skip to content

Commit

Permalink
add(test_main.py): add test case for report exitcode following previo…
Browse files Browse the repository at this point in the history
…us test cases
  • Loading branch information
hemanialaparthi committed Dec 5, 2024
1 parent 0c10209 commit 5829005
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,15 @@ def test_invalid_help_spelling():
result = runner.invoke(main.cli, ["run", ". tests/", "--hlp"])
assert result.exit_code != 0


def test_run_default_report_exitcode():
"""Test the run command to check the default report is set to exitcode."""
result = runner.invoke(main.cli, ["run", ".", "--report", "--fancy"])
assert result.exit_code != 0


def test_run_default_mark_exitcode():
"""Test the run command to check the default mark has an output."""
result = runner.invoke(main.cli, ["run", ".", "--mark"])
assert result.exit_code != 0
# }}}

0 comments on commit 5829005

Please sign in to comment.