diff options
Diffstat (limited to 'tests/test_history.py')
-rwxr-xr-x | tests/test_history.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_history.py b/tests/test_history.py index d1285705..bb857334 100755 --- a/tests/test_history.py +++ b/tests/test_history.py @@ -544,9 +544,9 @@ def test_history_edit(monkeypatch): # going to call it due to the mock app.editor = 'fooedit' - # Mock out the _run_editor call so we don't actually open an editor - edit_mock = mock.MagicMock(name='_run_editor') - monkeypatch.setattr("cmd2.Cmd._run_editor", edit_mock) + # Mock out the run_editor call so we don't actually open an editor + edit_mock = mock.MagicMock(name='run_editor') + monkeypatch.setattr("cmd2.Cmd.run_editor", edit_mock) # Mock out the run_script call since the mocked edit won't produce a file run_script_mock = mock.MagicMock(name='do_run_script') |