Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Nov 19, 2024
1 parent c2ef646 commit 817b9e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/cli_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ def test_sysoutput():

def test_download():
"""test page download and command-line interface"""
assert cli_utils._define_exit_code([], 0) == 0
assert cli_utils._define_exit_code(["a"], 1) == 126
assert cli_utils._define_exit_code(["a"], 2) == 1

testargs = ["", "-v"]
with patch.object(sys, "argv", testargs):
args = cli.parse_args(testargs)
Expand Down

0 comments on commit 817b9e5

Please sign in to comment.