summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_argparse.py5
-rw-r--r--tests/test_completion.py5
2 files changed, 2 insertions, 8 deletions
diff --git a/tests/test_argparse.py b/tests/test_argparse.py
index d3646046..85b438e2 100644
--- a/tests/test_argparse.py
+++ b/tests/test_argparse.py
@@ -195,10 +195,7 @@ class SubcommandApp(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_and_unknown_args(base_parser, subcommands)
+ @cmd2.with_argparser_and_unknown_args(base_parser)
def do_base(self, args, arglist):
"""Base command help"""
try:
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: