Skip to content

Commit 8289d0e

Browse files
committed
Fix a couple obvious typos in test code that is obviously never exercised but probably should be
1 parent 3eccbec commit 8289d0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_argparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def base_helpless(self, args) -> None:
291291
# details.
292292
parser_helpless = base_subparsers.add_parser('helpless', aliases=['helpless_1', 'helpless_2'])
293293
parser_helpless.add_argument('z', help='string')
294-
parser_helpless.set_defaults(func=base_bar)
294+
parser_helpless.set_defaults(func=base_helpless)
295295

296296
@cmd2.with_argparser(base_parser)
297297
def do_base(self, args) -> None:

tests_isolated/test_commandset/test_argparse_subcommands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def base_helpless(self, args) -> None:
5050
# details.
5151
parser_helpless = base_subparsers.add_parser('helpless', aliases=['helpless_1', 'helpless_2'])
5252
parser_helpless.add_argument('z', help='string')
53-
parser_helpless.set_defaults(func=base_bar)
53+
parser_helpless.set_defaults(func=base_helpless)
5454

5555
@cmd2.with_argparser(base_parser)
5656
def do_base(self, args) -> None:

0 commit comments

Comments
 (0)