From 51736b9566637351362f1eaeb32ea42aecdec704 Mon Sep 17 00:00:00 2001 From: David Lord Date: Wed, 10 Nov 2021 16:42:17 -0800 Subject: remove deprecated Command autocompletion parameter --- tests/test_shell_completion.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tests') 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", -- cgit v1.2.1