mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: format code with black
This commit is contained in:
parent
81981e7e99
commit
6a2dd41275
1 changed files with 4 additions and 4 deletions
|
@ -620,13 +620,13 @@ class TestMain(TestCase):
|
||||||
)
|
)
|
||||||
self.assertTrue(coder.suggest_shell_commands)
|
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):
|
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:
|
try:
|
||||||
result = main(["--exit"], input=DummyInput(), output=DummyOutput())
|
result = main(["--exit"], input=DummyInput(), output=DummyOutput())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.fail(f"main() raised an unexpected exception: {e}")
|
self.fail(f"main() raised an unexpected exception: {e}")
|
||||||
|
|
||||||
self.assertIsNone(result, "main() should return None when called with --exit")
|
self.assertIsNone(result, "main() should return None when called with --exit")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue