test: fix mock model name setup in co-authored-by test

This commit is contained in:
Andrew Grigorev (aider) 2025-04-12 17:09:12 +03:00
parent eb28e22891
commit 192f8bec26

View file

@ -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()