diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-12 18:04:16 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-12 18:04:16 -0400 |
commit | 474af6f290b188e9161c0a47689262752ba79843 (patch) | |
tree | 2d193c2743e3cff69b29c25f08c71822afbbb962 /tests/test_argparse_completer.py | |
parent | 4b4d723f99b17399f7d1f69cf1bf205b104ec85c (diff) | |
download | cmd2-git-474af6f290b188e9161c0a47689262752ba79843.tar.gz |
Replaced AutoCompleter._positional_completers since an ArgumentParser can only have one level of subcommands
No longer creating AutoCompleters for all subcommands each time tab is pressed
Diffstat (limited to 'tests/test_argparse_completer.py')
-rw-r--r-- | tests/test_argparse_completer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_argparse_completer.py b/tests/test_argparse_completer.py index 68a2320c..2a94c1d8 100644 --- a/tests/test_argparse_completer.py +++ b/tests/test_argparse_completer.py @@ -767,5 +767,5 @@ def test_complete_command_help_no_tokens(ac_app): parser = Cmd2ArgumentParser() ac = AutoCompleter(parser, ac_app) - completions = ac.complete_command_help(tokens=[], text='', line='', begidx=0, endidx=0) + completions = ac.complete_subcommand_help(tokens=[], text='', line='', begidx=0, endidx=0) assert not completions |