diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-03-20 13:51:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 13:51:43 -0400 |
commit | 990ec45e087aed2a9a6309db893c8a25cb3a89fd (patch) | |
tree | dcf46cb649bf9bdc095d4bcf5757c37ccfded9b6 /tests/test_cmd2.py | |
parent | 36864f4d212daf8d6e94359c08a7388c7c457f80 (diff) | |
parent | c3e424ec69de31890ddadf67dee5fa903cbcd665 (diff) | |
download | cmd2-git-990ec45e087aed2a9a6309db893c8a25cb3a89fd.tar.gz |
Merge pull request #908 from python-cmd2/shell_pyscript
do_shell integration with pyscript
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 2db52d39..66ef33de 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -203,6 +203,10 @@ def test_base_shell(base_app, monkeypatch): assert out == [] assert m.called +def test_shell_last_result(base_app): + base_app.last_result = None + run_cmd(base_app, 'shell fake') + assert base_app.last_result is not None def test_base_py(base_app): # Make sure py can't edit Cmd.py_locals. It used to be that cmd2 was passing its py_locals |