mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Resolve issues in test_main.py
This commit is contained in:
parent
ec7a212b60
commit
d34da62b12
1 changed files with 3 additions and 2 deletions
|
@ -377,7 +377,7 @@ class TestMain(TestCase):
|
|||
|
||||
def test_map_tokens_option(self):
|
||||
with GitTemporaryDirectory():
|
||||
with patch("aider.base_coder.RepoMap") as MockRepoMap:
|
||||
with patch("aider.repomap.RepoMap") as MockRepoMap:
|
||||
main(
|
||||
["--model", "gpt-4", "--map-tokens", "0", "--exit", "--yes"],
|
||||
input=DummyInput(),
|
||||
|
@ -387,7 +387,8 @@ class TestMain(TestCase):
|
|||
|
||||
def test_map_tokens_option_with_non_zero_value(self):
|
||||
with GitTemporaryDirectory():
|
||||
with patch("aider.coders.base_coder.RepoMap") as MockRepoMap:
|
||||
with patch("aider.repomap.RepoMap") as MockRepoMap:
|
||||
MockRepoMap.return_value.max_map_tokens = 1000
|
||||
main(
|
||||
["--model", "gpt-4", "--map-tokens", "1000", "--exit", "--yes"],
|
||||
input=DummyInput(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue