Skip to content

Commit 8e90658

Browse files
committed
Updated unit test
1 parent 6b38d41 commit 8e90658

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_transcript.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,17 @@ def test_generate_transcript_stop(capsys):
224224
fd, transcript_fname = tempfile.mkstemp(prefix='', suffix='.trn')
225225
os.close(fd)
226226

227-
# This should run all commands return False for stop
227+
# This should run all commands
228228
commands = ['help', 'alias']
229-
stop = app._generate_transcript(commands, transcript_fname)
229+
app._generate_transcript(commands, transcript_fname)
230230
_, err = capsys.readouterr()
231-
assert not stop
232231
assert err.startswith("2 commands")
233232

234233
# Since quit returns True for stop, only the first 2 commands will run
235234
commands = ['help', 'quit', 'alias']
236235
app._generate_transcript(commands, transcript_fname)
237236
_, err = capsys.readouterr()
238-
assert "triggered a stop" in err
237+
assert err.startswith("Command 2 triggered a stop")
239238

240239

241240
@pytest.mark.parametrize('expected, transformed', [

0 commit comments

Comments
 (0)