From e5699bc65b20b1428e3c8db5cf3f8b5d8bf41569 Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Mon, 30 Apr 2018 16:07:29 -0400 Subject: Added more tests exercising the pyscript bridge. --- examples/subcommands.py | 1 + examples/tab_autocompletion.py | 1 + 2 files changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/subcommands.py b/examples/subcommands.py index 75c0733e..eda88072 100755 --- a/examples/subcommands.py +++ b/examples/subcommands.py @@ -13,6 +13,7 @@ from cmd2 import with_argparser sport_item_strs = ['Bat', 'Basket', 'Basketball', 'Football', 'Space Ball'] + class SubcommandsExample(cmd2.Cmd): """ Example cmd2 application where we a base command which has a couple subcommands diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index 078faac2..38a2b4e9 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -18,6 +18,7 @@ actors = ['Mark Hamill', 'Harrison Ford', 'Carrie Fisher', 'Alec Guinness', 'Pet 'Lupita Nyong\'o', 'Andy Serkis', 'Liam Neeson', 'Ewan McGregor', 'Natalie Portman', 'Jake Lloyd', 'Hayden Christensen', 'Christopher Lee'] + def query_actors() -> List[str]: """Simulating a function that queries and returns a completion values""" return actors -- cgit v1.2.1