Skip to content

Commit

Permalink
Add test for --version
Browse files Browse the repository at this point in the history
  • Loading branch information
chazeon committed May 29, 2024
1 parent cefebf5 commit 4721d72
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ def test_cli_search(

assert result.exit_code == 0
assert len(result.stdout_bytes) > 0


def test_cli_version(
cli_runner: click.testing.CliRunner
):
result: click.testing.Result = cli_runner.invoke(main, [
"--version"
])

assert result.exit_code == 0
assert len(result.stdout.strip().split(".")) == 3

0 comments on commit 4721d72

Please sign in to comment.