diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-07 22:44:33 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-07 22:44:33 -0400 |
commit | 8d3d59801ca690f718ed9814c9e124e27040c141 (patch) | |
tree | 667512e1efa069beaadbd4bdc757df8eacff33c3 /examples | |
parent | bb2dd69bd04f5dccff9474c018eb6b6eea74c6af (diff) | |
download | cmd2-git-8d3d59801ca690f718ed9814c9e124e27040c141.tar.gz |
More argparse completer unit tests
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/tab_autocompletion.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index a6d5487d..c4fc6218 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -177,9 +177,9 @@ class TabCompleteExample(cmd2.Cmd): if not args.type: self.do_help('orig_suggest') - def _do_vid_media_movies(self, args) -> None: + def _do_vid_movies(self, args) -> None: if not args.command: - self.do_help('media movies') + self.do_help('video movies') elif args.command == 'list': for movie_id in TabCompleteExample.MOVIE_DATABASE: movie = TabCompleteExample.MOVIE_DATABASE[movie_id] @@ -188,9 +188,9 @@ class TabCompleteExample(cmd2.Cmd): ', '.join(movie['director']), '\n '.join(movie['actor']))) - def _do_vid_media_shows(self, args) -> None: + def _do_vid_shows(self, args) -> None: if not args.command: - self.do_help('media shows') + self.do_help('video shows') elif args.command == 'list': for show_id in TabCompleteExample.SHOW_DATABASE: @@ -209,7 +209,7 @@ class TabCompleteExample(cmd2.Cmd): video_types_subparsers = video_parser.add_subparsers(title='Media Types', dest='type') vid_movies_parser = video_types_subparsers.add_parser('movies') - vid_movies_parser.set_defaults(func=_do_vid_media_movies) + vid_movies_parser.set_defaults(func=_do_vid_movies) vid_movies_commands_subparsers = vid_movies_parser.add_subparsers(title='Commands', dest='command') @@ -243,7 +243,7 @@ class TabCompleteExample(cmd2.Cmd): descriptive_header='Title') vid_shows_parser = video_types_subparsers.add_parser('shows') - vid_shows_parser.set_defaults(func=_do_vid_media_shows) + vid_shows_parser.set_defaults(func=_do_vid_shows) vid_shows_commands_subparsers = vid_shows_parser.add_subparsers(title='Commands', dest='command') |