From 8b6863dc409d20fa2394c6fc63aa967bb3e8bfb8 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 11 Jan 2025 15:46:33 -0800 Subject: [PATCH] style: Format test_io.py with consistent quotes and spacing --- tests/basic/test_io.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/basic/test_io.py b/tests/basic/test_io.py index baa36bb04..15745d522 100644 --- a/tests/basic/test_io.py +++ b/tests/basic/test_io.py @@ -288,19 +288,19 @@ class TestInputOutputMultilineMode(unittest.TestCase): def test_tool_message_unicode_fallback(self): """Test that Unicode messages are properly converted to ASCII with replacement""" io = InputOutput(pretty=False, fancy_input=False) - + # Create a message with Unicode characters unicode_message = "Hello こんにちは Привет" - + # Mock console.print to capture the output - with patch.object(io.console, 'print') as mock_print: + with patch.object(io.console, "print") as mock_print: io._tool_message(unicode_message) - + # Verify that the message was converted to ASCII with replacement mock_print.assert_called_once() args, kwargs = mock_print.call_args converted_message = args[0] - + # The Unicode characters should be replaced with '?' self.assertEqual(converted_message, "Hello ????? ?????")