Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed May 30, 2023
1 parent 55dab46 commit e05bda9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ def test_cli():
"-v",
"--language",
"en",
"--parallel",
"2",
]
with patch.object(sys, "argv", testargs):
args = cli.parse_args(testargs)
Expand All @@ -864,6 +866,7 @@ def test_cli():
assert args.outputfile == "output.txt"
assert args.verbose is True
assert args.language == "en"
assert args.parallel == 2
assert os.system("courlan --help") == 0 # exit status

# testfile
Expand Down

0 comments on commit e05bda9

Please sign in to comment.