summaryrefslogtreecommitdiff
path: root/tests/test_history.py
diff options
context:
space:
mode:
authorSimon J. Rowe <srowe@mose.org.uk>2021-05-14 19:40:18 +0100
committerSimon J. Rowe <srowe@mose.org.uk>2021-05-14 19:40:18 +0100
commit9068f140998a4bab4a3ba9b75f879ca726f029f7 (patch)
tree79cf98c55a0baaa73d1d65333015fa3b822aa1f6 /tests/test_history.py
parent79bf87d1e333ea5fe0dfeb61c707eb9bddfd0255 (diff)
downloadcmd2-git-9068f140998a4bab4a3ba9b75f879ca726f029f7.tar.gz
Make _run_editor() public
Diffstat (limited to 'tests/test_history.py')
-rwxr-xr-xtests/test_history.py6
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')