diff options
author | Eric Lin <anselor@gmail.com> | 2018-04-30 19:16:00 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2018-04-30 19:16:00 -0400 |
commit | 4a36b8c68d24707e85a1030759ec42b1a07421e1 (patch) | |
tree | 10e85a6aa5c8da383b6d1d88748e25b19dcbeefe /tests | |
parent | e5699bc65b20b1428e3c8db5cf3f8b5d8bf41569 (diff) | |
download | cmd2-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')
-rw-r--r-- | tests/pyscript/media_movies_add2.py | 1 | ||||
-rw-r--r-- | tests/test_pyscript.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/pyscript/media_movies_add2.py b/tests/pyscript/media_movies_add2.py new file mode 100644 index 00000000..5c4617ae --- /dev/null +++ b/tests/pyscript/media_movies_add2.py @@ -0,0 +1 @@ +app.media.movies.add('My Movie', 'PG-13', actor=('Mark Hamill'), director=('George Lucas', 'J. J. Abrams')) 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__) |