From 192f8bec26ca0348cf43b1ec7bf00ac7e459f565 Mon Sep 17 00:00:00 2001 From: "Andrew Grigorev (aider)" Date: Sat, 12 Apr 2025 17:09:12 +0300 Subject: [PATCH] test: fix mock model name setup in co-authored-by test --- tests/basic/test_repo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/basic/test_repo.py b/tests/basic/test_repo.py index 4ff694714..d0441a4da 100644 --- a/tests/basic/test_repo.py +++ b/tests/basic/test_repo.py @@ -236,7 +236,8 @@ class TestRepo(unittest.TestCase): mock_coder.args.attribute_commit_message_author = False mock_coder.args.attribute_commit_message_committer = False # Set the model name correctly on the nested mock - mock_coder.model = MagicMock(name="gpt-test") + mock_coder.model = MagicMock() + mock_coder.model.configure_mock(name="gpt-test") io = InputOutput()