Skip to content

Commit e39fda8

Browse files
committed
Add some basic test ad example
1 parent 34c20ea commit e39fda8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/__init__.py

Whitespace-only changes.

tests/test_cli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from click.testing import CliRunner
2+
from gitconsensus.gitconsensus import cli
3+
4+
def test_cli_command():
5+
runner = CliRunner()
6+
result = runner.invoke(cli, ["get-repository"])
7+
assert result.exit_code == 2
8+

0 commit comments

Comments
 (0)