Skip to content

Commit 3802eca

Browse files
committed
Fixed Windows tests.
1 parent 6e81162 commit 3802eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,8 +2190,8 @@ def test_read_input_passes_all_arguments_to_resolver(base_app):
21902190
def test_read_input_history_is_passed_to_session(base_app, monkeypatch, mocker):
21912191
mock_session_cls = mocker.patch('cmd2.cmd2.PromptSession')
21922192
mock_history_cls = mocker.patch('cmd2.cmd2.InMemoryHistory')
2193-
read_command_mock = mocker.MagicMock(name='_read_command_line', return_value='command')
2194-
monkeypatch.setattr("cmd2.Cmd._read_command_line", read_command_mock)
2193+
read_raw_mock = mocker.MagicMock(name='_read_raw_input', return_value='command')
2194+
monkeypatch.setattr("cmd2.Cmd._read_raw_input", read_raw_mock)
21952195

21962196
# Test with custom history first
21972197
my_history_list = ["help", "help alias", "help help"]

0 commit comments

Comments
 (0)