Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 300 Bytes
from click.testing import CliRunner
from cli_sub import cli
def test_cli_sub1():
result = CliRunner().invoke(cli, args=['sub1'])
assert 'sub command1\n' == result.output
def test_cli_sub2():
result = CliRunner().invoke(cli, args=['sub2'])
assert 'sub command2\n' == result.output
You can’t perform that action at this time.