diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-12 15:19:48 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-12 15:19:48 -0400 |
commit | 6b38d416a38fdf0d7fec8425d2761800cb891f06 (patch) | |
tree | 11563b09ca152422ddefed3b298003e6cc0c6f2b /tests | |
parent | 57c64c4045e9d3d6e06787b8ea7bafdc14a2fa13 (diff) | |
download | cmd2-git-6b38d416a38fdf0d7fec8425d2761800cb891f06.tar.gz |
Transcript generation no longer terminates _cmdloop() when a command returns True for stop
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_transcript.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 4142e386..ed4c2755 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -231,12 +231,11 @@ def test_generate_transcript_stop(capsys): assert not stop assert err.startswith("2 commands") - # Since quit returns True for stop, only the first 2 commands will run and stop should be True + # Since quit returns True for stop, only the first 2 commands will run commands = ['help', 'quit', 'alias'] - stop = app._generate_transcript(commands, transcript_fname) + app._generate_transcript(commands, transcript_fname) _, err = capsys.readouterr() - assert stop - assert err.startswith("2 commands") + assert "triggered a stop" in err @pytest.mark.parametrize('expected, transformed', [ |