Skip to content

Commit

Permalink
Add a minimal sense check for the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ghickman committed Nov 21, 2023
1 parent d56b6b5 commit 9aad692
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/metrics/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import textwrap

from click.testing import CliRunner

from metrics.cli import cli


def test_cli():
runner = CliRunner()
result = runner.invoke(cli)

assert result.exit_code == 0

suffix = textwrap.dedent(
"""
Commands:
github
slack
"""
)
assert result.output.endswith(suffix)

0 comments on commit 9aad692

Please sign in to comment.