fix: Set mock_repo_map.max_map_tokens to 1000 in test_sonnet_and_cache_options

This commit is contained in:
Paul Gauthier (aider) 2024-08-19 15:32:46 -07:00
parent 2513e36104
commit cc2b48bef8

View file

@ -519,6 +519,7 @@ class TestMain(TestCase):
with GitTemporaryDirectory():
with patch("aider.coders.base_coder.RepoMap") as MockRepoMap:
mock_repo_map = MagicMock()
mock_repo_map.max_map_tokens = 1000 # Set a specific value
MockRepoMap.return_value = mock_repo_map
main(