From a1f104cb4d278f0f3961f1afbf844a96290fd106 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sun, 9 Mar 2025 08:43:45 -0700 Subject: [PATCH] style: wrap long lines in test docstrings and comments --- tests/basic/test_reasoning.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/basic/test_reasoning.py b/tests/basic/test_reasoning.py index fdb2fdd77..2d903706b 100644 --- a/tests/basic/test_reasoning.py +++ b/tests/basic/test_reasoning.py @@ -400,7 +400,8 @@ End""" self.assertEqual(remove_reasoning_content(text, "think"), text) def test_send_with_reasoning(self): - """Test that reasoning content from the 'reasoning' attribute is properly formatted and output.""" + """Test that reasoning content from the 'reasoning' attribute is properly formatted + and output.""" # Setup IO with no pretty io = InputOutput(pretty=False) io.assistant_output = MagicMock() @@ -463,7 +464,8 @@ End""" ) def test_send_with_reasoning_stream(self): - """Test that streaming reasoning content from the 'reasoning' attribute is properly formatted and output.""" + """Test that streaming reasoning content from the 'reasoning' attribute is properly + formatted and output.""" # Setup IO with pretty output for streaming io = InputOutput(pretty=True) mock_mdstream = MagicMock() @@ -506,7 +508,8 @@ End""" # Need to handle attribute access that would raise AttributeError delattr(self.choices[0].delta, "reasoning") - # Create chunks to simulate streaming - using reasoning attribute instead of reasoning_content + # Create chunks to simulate streaming - using reasoning attribute instead of + # reasoning_content chunks = [ # First chunk with reasoning content starts the tag MockStreamingChunk(reasoning="My step-by-step "),