Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 229 Bytes
from click.testing import CliRunner
from cli_exception import cli
def test_cli_exception():
result = CliRunner().invoke(cli)
assert 'Hello world!' == str(result.exception)
assert Exception == type(result.exception)
You can’t perform that action at this time.