@@ -429,31 +429,30 @@ def test_relative_run_script(base_app, request):
429429
430430def test_relative_run_script_with_odd_file_names (base_app , monkeypatch ):
431431 """Test file names with various patterns"""
432- # Mock out the do_run_script call to see what args are passed
432+ # Mock out the do_run_script call to see what args are passed to it
433433 run_script_mock = mock .MagicMock (name = 'do_run_script' )
434434 monkeypatch .setattr ("cmd2.Cmd.do_run_script" , run_script_mock )
435435
436436 file_name = utils .quote_string ('nothingweird.txt' )
437- out , err = run_cmd (base_app , "run_script {}" .format (file_name ))
437+ out , err = run_cmd (base_app , "_relative_run_script {}" .format (file_name ))
438438 run_script_mock .assert_called_once_with ('"nothingweird.txt"' )
439439 run_script_mock .reset_mock ()
440440
441441 file_name = utils .quote_string ('has spaces.txt' )
442- out , err = run_cmd (base_app , "run_script {}" .format (file_name ))
442+ out , err = run_cmd (base_app , "_relative_run_script {}" .format (file_name ))
443443 run_script_mock .assert_called_once_with ('"has spaces.txt"' )
444444 run_script_mock .reset_mock ()
445445
446446 file_name = utils .quote_string ('"is_double_quoted.txt"' )
447- out , err = run_cmd (base_app , "run_script {}" .format (file_name ))
447+ out , err = run_cmd (base_app , "_relative_run_script {}" .format (file_name ))
448448 run_script_mock .assert_called_once_with ('\' "is_double_quoted.txt"\' ' )
449449 run_script_mock .reset_mock ()
450450
451451 file_name = utils .quote_string ("'is_single_quoted.txt'" )
452- out , err = run_cmd (base_app , "run_script {}" .format (file_name ))
452+ out , err = run_cmd (base_app , "_relative_run_script {}" .format (file_name ))
453453 run_script_mock .assert_called_once_with ('"\' is_single_quoted.txt\' "' )
454454 run_script_mock .reset_mock ()
455455
456-
457456def test_relative_run_script_requires_an_argument (base_app ):
458457 out , err = run_cmd (base_app , '_relative_run_script' )
459458 assert 'Error: the following arguments' in err [1 ]
@@ -685,7 +684,7 @@ def test_edit_file(base_app, request, monkeypatch):
685684
686685def test_edit_file_with_odd_file_names (base_app , monkeypatch ):
687686 """Test editor and file names with various patterns"""
688- # Mock out the do_shell call to see what args are passed
687+ # Mock out the do_shell call to see what args are passed to it
689688 shell_mock = mock .MagicMock (name = 'do_shell' )
690689 monkeypatch .setattr ("cmd2.Cmd.do_shell" , shell_mock )
691690
0 commit comments