From 6a2dd41275c4c1ce8c10e23f4de63bb129d36407 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 31 Aug 2024 07:46:37 -0700 Subject: [PATCH] style: format code with black --- tests/basic/test_main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/basic/test_main.py b/tests/basic/test_main.py index 91676d0d3..7aafdc1f1 100644 --- a/tests/basic/test_main.py +++ b/tests/basic/test_main.py @@ -620,13 +620,13 @@ class TestMain(TestCase): ) self.assertTrue(coder.suggest_shell_commands) - @patch('git.Repo.init') + @patch("git.Repo.init") def test_main_exit_with_git_command_not_found(self, mock_git_init): - mock_git_init.side_effect = git.exc.GitCommandNotFound('git') - + mock_git_init.side_effect = git.exc.GitCommandNotFound("git") + try: result = main(["--exit"], input=DummyInput(), output=DummyOutput()) except Exception as e: self.fail(f"main() raised an unexpected exception: {e}") - + self.assertIsNone(result, "main() should return None when called with --exit")