Skip to content

Commit

Permalink
test: add extra blank line
Browse files Browse the repository at this point in the history
  • Loading branch information
versun committed Dec 19, 2024
1 parent ede9c38 commit 8316f1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_cli_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ def test_default_args():
args = parse_args()
assert args.num_commits is None


def test_num_commits():
"""Test parsing number of commits argument."""
test_num = 5
with patch("sys.argv", ["script.py", "--num-commits", str(test_num)]):
args = parse_args()
assert args.num_commits == test_num


def test_version():
"""Test version argument raises SystemExit."""
with pytest.raises(SystemExit) as exc_info:
Expand Down

0 comments on commit 8316f1e

Please sign in to comment.