summaryrefslogtreecommitdiff
path: root/tests/test_basic.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2014-05-21 21:36:14 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2014-05-21 21:36:14 +0200
commit39b5df2b12a0e746c5020e0f4379b8e27b44f911 (patch)
treeb450b1925bfffc5b201477b5ae97c026531fdf3d /tests/test_basic.py
parenta2c58d5b8e7e4d8654507e13a93f185025fc7251 (diff)
downloadclick-39b5df2b12a0e746c5020e0f4379b8e27b44f911.tar.gz
Fixed lack of clear reporting for paths
Diffstat (limited to 'tests/test_basic.py')
-rw-r--r--tests/test_basic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_basic.py b/tests/test_basic.py
index 28ea5f0..468f5a5 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -249,7 +249,7 @@ def test_path_option(runner):
assert f.read() == b'meh\n'
result = runner.invoke(write_to_dir, ['-O', 'test/foo.txt'])
- assert 'Invalid value: Directory "test/foo.txt" is a file.' \
+ assert 'Invalid value for "-O": Directory "test/foo.txt" is a file.' \
in result.output
@click.command()
@@ -260,7 +260,7 @@ def test_path_option(runner):
with runner.isolated_filesystem():
result = runner.invoke(showtype, ['-f', 'xxx'])
- assert 'Error: Invalid value: Path "xxx" does not exist' \
+ assert 'Error: Invalid value for "-f": Path "xxx" does not exist' \
in result.output
result = runner.invoke(showtype, ['-f', '.'])