From 653f0c77effd9271e3d076c373d2cce6988151d8 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 31 Aug 2024 07:47:19 -0700 Subject: [PATCH] fix: add missing cause argument to GitCommandNotFound exception --- tests/basic/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic/test_main.py b/tests/basic/test_main.py index 7aafdc1f1..3a592beb9 100644 --- a/tests/basic/test_main.py +++ b/tests/basic/test_main.py @@ -622,7 +622,7 @@ class TestMain(TestCase): @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", "Command 'git' not found") try: result = main(["--exit"], input=DummyInput(), output=DummyOutput())