summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-09-17 10:04:25 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-09-17 10:04:25 -0400
commit17eefdeb934525772885ff31f80a0d5a016a5b52 (patch)
treeaf2c2be429ebf31183826fceaafe23581a38a3b4 /tests/test_completion.py
parent60ab11c3166a2a76bf67774c67b583d7d30fe5be (diff)
downloadcmd2-git-17eefdeb934525772885ff31f80a0d5a016a5b52.tar.gz
No longer printing all help text for alias and macro when the subcommand is omitted. Instead allow argparse to handle the error.
Diffstat (limited to 'tests/test_completion.py')
-rwxr-xr-xtests/test_completion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py
index fb0d74e0..c7d9bd21 100755
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -1179,7 +1179,7 @@ def test_cmd2_help_subcommand_completion_with_flags_before_command(scu_app):
first_match = complete_tester(text, line, begidx, endidx, scu_app)
assert first_match is not None and scu_app.completion_matches == ['bar', 'foo', 'sport']
-def test_complete_help_subcommand_with_blank_command(scu_app):
+def test_complete_help_subcommands_with_blank_command(scu_app):
text = ''
line = 'help "" {}'.format(text)
endidx = len(line)