diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-05-11 17:46:54 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-05-11 17:46:54 +0200 |
commit | 3e51448fb7cf7b777ce977d7e6c47d9cf29e9ae3 (patch) | |
tree | 5c235cd767d2efea6e139ea7cc5bbae028a69039 /tests/test_testing.py | |
parent | b3965e826d8aee3d8edc7788640229c10e2c2549 (diff) | |
download | click-3e51448fb7cf7b777ce977d7e6c47d9cf29e9ae3.tar.gz |
Added docs for input stream testing.
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r-- | tests/test_testing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index 933b426..a03c72d 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -64,7 +64,7 @@ def test_prompts(): click.echo('foo=%s' % foo) runner = CliRunner() - result = runner.invoke(test, input='wau wau') + result = runner.invoke(test, input='wau wau\n') assert not result.exception assert result.output == 'Foo: wau wau\nfoo=wau wau\n' @@ -74,6 +74,6 @@ def test_prompts(): click.echo('foo=%s' % foo) runner = CliRunner() - result = runner.invoke(test, input='wau wau') + result = runner.invoke(test, input='wau wau\n') assert not result.exception assert result.output == 'Foo: \nfoo=wau wau\n' |