Skip to content

Commit 11cdbda

Browse files
committed
Fixed mock patch.
1 parent a39b929 commit 11cdbda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3623,7 +3623,7 @@ def test_read_command_line_dynamic_prompt(base_app: cmd2.Cmd) -> None:
36233623

36243624
# Mock patch_stdout to prevent it from attempting to access the Windows
36253625
# console buffer in a Windows test environment.
3626-
with mock.patch('prompt_toolkit.patch_stdout.patch_stdout', return_value=mock.MagicMock()):
3626+
with mock.patch('cmd2.cmd2.patch_stdout'):
36273627
# Set input to something other than DummyInput so _read_raw_input()
36283628
# will go down the TTY route.
36293629
mock_session = mock.MagicMock()

0 commit comments

Comments
 (0)