speedup test_unix_console.py and test_windows_console.py
height = kwargs.get("height", 25)
width = kwargs.get("width", 80)
console.getheightwidth = MagicMock(side_effect=lambda: (height, width))
+ console.wait = MagicMock()
console.prepare()
for key, val in kwargs.items():
def console(self, events, **kwargs) -> Console:
console = WindowsConsole()
console.get_event = MagicMock(side_effect=events)
+ console.wait = MagicMock()
console._scroll = MagicMock()
console._hide_cursor = MagicMock()
console._show_cursor = MagicMock()