diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-24 21:20:58 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-24 21:20:58 -0400 |
commit | 3a7dff372be39ef668a93f2cee9c40291f096521 (patch) | |
tree | 911473c26ca90e0b88084ca5889b180b438005e4 /tests/test_pyscript.py | |
parent | fafdc4b11a56e98bcc36715082552b6465d3a225 (diff) | |
download | cmd2-git-3a7dff372be39ef668a93f2cee9c40291f096521.tar.gz |
Made small tweak to do_py to improve testability
Diffstat (limited to 'tests/test_pyscript.py')
-rw-r--r-- | tests/test_pyscript.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pyscript.py b/tests/test_pyscript.py index d5b182c9..d5e5a4fb 100644 --- a/tests/test_pyscript.py +++ b/tests/test_pyscript.py @@ -140,7 +140,7 @@ def ps_echo(): ('help', 'help.py'), ('help media', 'help_media.py'), ]) -def test_pyscript_help(ps_app, capsys, request, command, pyscript_file): +def test_pyscript_help(ps_app, request, command, pyscript_file): test_dir = os.path.dirname(request.module.__file__) python_script = os.path.join(test_dir, 'pyscript', pyscript_file) expected = run_cmd(ps_app, command) @@ -169,7 +169,7 @@ def test_pyscript_help(ps_app, capsys, request, command, pyscript_file): ('foo 11 22 33 44 55 66 -ccc', 'foo3.py'), ('bar 11 22', 'bar1.py'), ]) -def test_pyscript_out(ps_app, capsys, request, command, pyscript_file): +def test_pyscript_out(ps_app, request, command, pyscript_file): test_dir = os.path.dirname(request.module.__file__) python_script = os.path.join(test_dir, 'pyscript', pyscript_file) expected = run_cmd(ps_app, command) |