summaryrefslogtreecommitdiff
path: root/tests/test_pyscript.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-04-30 19:16:00 -0400
committerEric Lin <anselor@gmail.com>2018-04-30 19:16:00 -0400
commit4a36b8c68d24707e85a1030759ec42b1a07421e1 (patch)
tree10e85a6aa5c8da383b6d1d88748e25b19dcbeefe /tests/test_pyscript.py
parente5699bc65b20b1428e3c8db5cf3f8b5d8bf41569 (diff)
downloadcmd2-git-4a36b8c68d24707e85a1030759ec42b1a07421e1.tar.gz
Further customization of argparse applying patch submitted to https://bugs.python.org/issue15112
Added additional tests - now at 100% coverage of pyscript_bridge.py Still need handling of special action types: StoreTrue/False, store_const, count
Diffstat (limited to 'tests/test_pyscript.py')
-rw-r--r--tests/test_pyscript.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_pyscript.py b/tests/test_pyscript.py
index 24626243..2a264a15 100644
--- a/tests/test_pyscript.py
+++ b/tests/test_pyscript.py
@@ -106,6 +106,8 @@ def test_pyscript_help(ps_app, capsys, request, command, pyscript_file):
('media movies list -r PG PG-13', 'media_movies_list7.py'),
('media movies add "My Movie" PG-13 --director "George Lucas" "J. J. Abrams"',
'media_movies_add1.py'),
+ ('media movies add "My Movie" PG-13 --director "George Lucas" "J. J. Abrams" "Mark Hamill"',
+ 'media_movies_add2.py'),
])
def test_pyscript_out(ps_app, capsys, request, command, pyscript_file):
test_dir = os.path.dirname(request.module.__file__)