diff options
author | Simon J. Rowe <srowe@mose.org.uk> | 2021-05-14 19:40:18 +0100 |
---|---|---|
committer | Simon J. Rowe <srowe@mose.org.uk> | 2021-05-14 19:40:18 +0100 |
commit | 9068f140998a4bab4a3ba9b75f879ca726f029f7 (patch) | |
tree | 79cf98c55a0baaa73d1d65333015fa3b822aa1f6 /tests/test_history.py | |
parent | 79bf87d1e333ea5fe0dfeb61c707eb9bddfd0255 (diff) | |
download | cmd2-git-9068f140998a4bab4a3ba9b75f879ca726f029f7.tar.gz |
Make _run_editor() public
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') |