summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_arguments.py2
-rw-r--r--tests/test_basic.py2
-rw-r--r--tests/test_commands.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_arguments.py b/tests/test_arguments.py
index 735df4b..899cc7c 100644
--- a/tests/test_arguments.py
+++ b/tests/test_arguments.py
@@ -315,7 +315,7 @@ def test_defaults_for_nargs(runner):
result = runner.invoke(cmd, ["3"])
assert result.exception is not None
- assert "Argument 'a' takes 2 values." in result.output
+ assert "Argument '[A]...' requires 2 values but 1 was given." in result.output
def test_multiple_param_decls_not_allowed(runner):
diff --git a/tests/test_basic.py b/tests/test_basic.py
index d68b962..1a1adc3 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -108,7 +108,7 @@ def test_group_from_list(runner):
[
([], "S:[no value]"),
(["--s=42"], "S:[42]"),
- (["--s"], "Error: Option '--s' requires an argument."),
+ (["--s"], "Error: Option '--s' requires a value."),
(["--s="], "S:[]"),
(["--s=\N{SNOWMAN}"], "S:[\N{SNOWMAN}]"),
],
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 3a0d4b9..179d6c1 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -166,7 +166,7 @@ def test_base_command(runner):
def cli():
pass
- class OptParseCommand(click.BaseCommand):
+ class OptParseCommand(click.Command):
def __init__(self, name, parser, callback):
super().__init__(name)
self.parser = parser