summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-11-10 16:42:17 -0800
committerDavid Lord <davidism@gmail.com>2021-11-10 16:42:17 -0800
commit51736b9566637351362f1eaeb32ea42aecdec704 (patch)
tree3b94a33be85efd9a6211bbde080139f249d54328 /tests
parentf00d15eeeaf4d789ac6a7840c43fb54aabe7fe3f (diff)
downloadclick-51736b9566637351362f1eaeb32ea42aecdec704.tar.gz
remove deprecated Command autocompletion parameter
Diffstat (limited to 'tests')
-rw-r--r--tests/test_shell_completion.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/test_shell_completion.py b/tests/test_shell_completion.py
index 8338d0e..08fa057 100644
--- a/tests/test_shell_completion.py
+++ b/tests/test_shell_completion.py
@@ -161,20 +161,6 @@ def test_option_custom():
assert _get_words(cli, ["a", "b"], "c") == ["C"]
-def test_autocompletion_deprecated():
- # old function takes args and not param, returns all values, can mix
- # strings and tuples
- def custom(ctx, args, incomplete):
- assert isinstance(args, list)
- return [("art", "x"), "bat", "cat"]
-
- with pytest.deprecated_call():
- cli = Command("cli", params=[Argument(["x"], autocompletion=custom)])
-
- assert _get_words(cli, [], "") == ["art", "bat", "cat"]
- assert _get_words(cli, [], "c") == ["cat"]
-
-
def test_option_multiple():
cli = Command(
"type",