Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 259 Bytes
from click.testing import CliRunner
from unittest.mock import patch
from cli_stdin2 import cli
def test_cli():
with patch('builtins.input', return_value='hoge'):
result = CliRunner().invoke(cli, args=[])
assert 'hoge\n' == result.output
You can’t perform that action at this time.