Skip to content

Commit 13c5742

Browse files
committed
Increased code coverage.
1 parent 5dc1f98 commit 13c5742

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_commandset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def do_main(self, args: argparse.Namespace) -> None:
9898
# main -> sub
9999
subcmd_parser = cmd2.Cmd2ArgumentParser(description="Sub Command")
100100

101-
@cmd2.as_subcommand_to('main', 'sub', subcmd_parser, help="sub command")
101+
# Include aliases to cover the alias check in cmd2's check_parser_uninstallable().
102+
@cmd2.as_subcommand_to('main', 'sub', subcmd_parser, help="sub command", aliases="sub_alias")
102103
def subcmd_func(self, args: argparse.Namespace) -> None:
103104
self._cmd.poutput("Subcommand Ran")
104105

0 commit comments

Comments
 (0)