style: Format test_models.py with linter

This commit is contained in:
Paul Gauthier (aider) 2025-02-06 08:36:38 -08:00
parent 856006a68d
commit 51938affc2

View file

@ -301,16 +301,14 @@ End"""
@patch("aider.models.litellm.completion")
def test_simple_send_with_retries_removes_reasoning(self, mock_completion):
model = Model("deepseek-r1") # This model has remove_reasoning="think"
# Mock the completion response
mock_response = MagicMock()
mock_response.choices = [
MagicMock(message=MagicMock(content="""Here is some text
mock_response.choices = [MagicMock(message=MagicMock(content="""Here is some text
<think>
This reasoning should be removed
</think>
And this text should remain"""))
]
And this text should remain"""))]
mock_completion.return_value = mock_response
messages = [{"role": "user", "content": "test"}]