summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r--tests/test_completion.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py
index 28dfb1ad..c1111ab9 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -615,10 +615,7 @@ class SubcommandsExample(cmd2.Cmd):
parser_bar.add_argument('z', help='string')
parser_bar.set_defaults(func=base_bar)
- # Create a list of subcommand names, which is used to enable tab-completion of sub-commands
- subcommands = ['foo', 'bar']
-
- @cmd2.with_argparser(base_parser, subcommands)
+ @cmd2.with_argparser(base_parser)
def do_base(self, args):
"""Base command help"""
try: