summaryrefslogtreecommitdiff
path: root/tests/test_testing.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2014-05-11 17:46:54 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2014-05-11 17:46:54 +0200
commit3e51448fb7cf7b777ce977d7e6c47d9cf29e9ae3 (patch)
tree5c235cd767d2efea6e139ea7cc5bbae028a69039 /tests/test_testing.py
parentb3965e826d8aee3d8edc7788640229c10e2c2549 (diff)
downloadclick-3e51448fb7cf7b777ce977d7e6c47d9cf29e9ae3.tar.gz
Added docs for input stream testing.
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r--tests/test_testing.py4
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'