From 6b38d416a38fdf0d7fec8425d2761800cb891f06 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 12 Jun 2019 15:19:48 -0400 Subject: Transcript generation no longer terminates _cmdloop() when a command returns True for stop --- tests/test_transcript.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/test_transcript.py') 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', [ -- cgit v1.2.1