File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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' , [
You can’t perform that action at this time.
0 commit comments