We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39b929 commit 11cdbdaCopy full SHA for 11cdbda
tests/test_cmd2.py
@@ -3623,7 +3623,7 @@ def test_read_command_line_dynamic_prompt(base_app: cmd2.Cmd) -> None:
3623
3624
# Mock patch_stdout to prevent it from attempting to access the Windows
3625
# console buffer in a Windows test environment.
3626
- with mock.patch('prompt_toolkit.patch_stdout.patch_stdout', return_value=mock.MagicMock()):
+ with mock.patch('cmd2.cmd2.patch_stdout'):
3627
# Set input to something other than DummyInput so _read_raw_input()
3628
# will go down the TTY route.
3629
mock_session = mock.MagicMock()
0 commit comments