diff options
author | Julien Maupetit <julien@tailordev.fr> | 2016-02-06 14:37:30 +0100 |
---|---|---|
committer | Julien Maupetit <julien@tailordev.fr> | 2016-02-06 14:37:30 +0100 |
commit | 0539364bfcc38e84d5cbfec9c157fb46e213e151 (patch) | |
tree | a9475f43cd632a0cdc02688569212924a94035e8 | |
parent | d168b2b79f3bc521fd4ed7198cb26e0a4e42e973 (diff) |
Add first POC for cli testingcli-tests
-rw-r--r-- | tests/test_cli.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..3e14311 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,15 @@ +import pytest + +from click import testing +from watson.cli import cli + + +@pytest.fixture +def runner(): + return testing.CliRunner() + + +def test_cli(runner): + + result = runner.invoke(cli) + assert result.exit_code == 0 |