mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
test: fix mock setup for model name in co-authored-by test
This commit is contained in:
parent
b6b8f30378
commit
eb28e22891
1 changed files with 3 additions and 1 deletions
|
@ -235,7 +235,9 @@ class TestRepo(unittest.TestCase):
|
||||||
mock_coder.args.attribute_committer = None # Explicitly None to test override
|
mock_coder.args.attribute_committer = None # Explicitly None to test override
|
||||||
mock_coder.args.attribute_commit_message_author = False
|
mock_coder.args.attribute_commit_message_author = False
|
||||||
mock_coder.args.attribute_commit_message_committer = False
|
mock_coder.args.attribute_commit_message_committer = False
|
||||||
mock_coder.model.name = "gpt-test"
|
# Set the model name correctly on the nested mock
|
||||||
|
mock_coder.model = MagicMock(name="gpt-test")
|
||||||
|
|
||||||
|
|
||||||
io = InputOutput()
|
io = InputOutput()
|
||||||
git_repo = GitRepo(io, None, None)
|
git_repo = GitRepo(io, None, None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue