From 91219eee30e87e7495157503176cdc92247c81e3 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 3 Aug 2024 10:03:32 -0300 Subject: [PATCH] style: Apply linter formatting to test_commands.py --- tests/basic/test_commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index 653dd9af3..8d5c50501 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -739,7 +739,7 @@ class TestCommands(TestCase): question = "What is the meaning of life?" canned_reply = "The meaning of life is 42." - with mock.patch('aider.coders.Coder.create') as mock_create: + with mock.patch("aider.coders.Coder.create") as mock_create: mock_chat_coder = mock.MagicMock() mock_chat_coder.run.return_value = canned_reply mock_create.return_value = mock_chat_coder @@ -750,10 +750,10 @@ class TestCommands(TestCase): mock_chat_coder.run.assert_called_once_with(question) self.assertEqual(len(coder.cur_messages), 2) - self.assertEqual(coder.cur_messages[0]['role'], 'user') - self.assertEqual(coder.cur_messages[0]['content'], question) - self.assertEqual(coder.cur_messages[1]['role'], 'assistant') - self.assertEqual(coder.cur_messages[1]['content'], canned_reply) + self.assertEqual(coder.cur_messages[0]["role"], "user") + self.assertEqual(coder.cur_messages[0]["content"], question) + self.assertEqual(coder.cur_messages[1]["role"], "assistant") + self.assertEqual(coder.cur_messages[1]["content"], canned_reply) def test_cmd_lint_with_dirty_file(self): with GitTemporaryDirectory() as repo_dir: