@@ -427,6 +427,7 @@ def test_relative_load_requires_an_argument(base_app, capsys):
427427def test_base_save (base_app ):
428428 # TODO: Use a temporary directory for the file
429429 filename = 'deleteme.txt'
430+ base_app .feedback_to_output = True
430431 run_cmd (base_app , 'help' )
431432 run_cmd (base_app , 'help save' )
432433
@@ -472,6 +473,7 @@ def test_save_parse_error(base_app, capsys):
472473
473474def test_save_tempfile (base_app ):
474475 # Just run help to make sure there is something in the history
476+ base_app .feedback_to_output = True
475477 run_cmd (base_app , 'help' )
476478 out = run_cmd (base_app , 'save *' )
477479 output = out [0 ]
@@ -507,7 +509,7 @@ def test_save_invalid_path(base_app, capsys):
507509def test_output_redirection (base_app ):
508510 fd , filename = tempfile .mkstemp (prefix = 'cmd2_test' , suffix = '.txt' )
509511 os .close (fd )
510-
512+
511513 try :
512514 # Verify that writing to a file works
513515 run_cmd (base_app , 'help > {}' .format (filename ))
@@ -533,7 +535,7 @@ def test_feedback_to_output_true(base_app):
533535 base_app .timing = True
534536 f , filename = tempfile .mkstemp (prefix = 'cmd2_test' , suffix = '.txt' )
535537 os .close (f )
536-
538+
537539 try :
538540 run_cmd (base_app , 'help > {}' .format (filename ))
539541 with open (filename ) as f :
@@ -550,7 +552,7 @@ def test_feedback_to_output_false(base_app, capsys):
550552 base_app .timing = True
551553 f , filename = tempfile .mkstemp (prefix = 'feedback_to_output' , suffix = '.txt' )
552554 os .close (f )
553-
555+
554556 try :
555557 run_cmd (base_app , 'help > {}' .format (filename ))
556558 out , err = capsys .readouterr ()
@@ -1253,12 +1255,14 @@ def test_clipboard_failure(capsys):
12531255
12541256def test_run_command_with_empty_arg (base_app ):
12551257 command = 'help'
1258+ base_app .feedback_to_output = True
12561259 run_cmd (base_app , command )
12571260 out = run_cmd (base_app , 'run' )
12581261 expected = normalize ('{}\n \n ' .format (command ) + BASE_HELP )
12591262 assert out == expected
12601263
12611264def test_run_command_with_empty_history (base_app ):
1265+ base_app .feedback_to_output = True
12621266 out = run_cmd (base_app , 'run' )
12631267 assert out == []
12641268
0 commit comments