mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: Add test for --map-mul option and update RepoMap to print map_mul_no_files
This commit is contained in:
parent
64d47df118
commit
bbb40e3045
2 changed files with 14 additions and 0 deletions
|
@ -574,3 +574,14 @@ class TestMain(TestCase):
|
|||
return_coder=False,
|
||||
)
|
||||
self.assertIsNone(result)
|
||||
|
||||
def test_map_mul_option(self):
|
||||
with GitTemporaryDirectory():
|
||||
coder = main(
|
||||
["--map-mul", "5", "--exit", "--yes"],
|
||||
input=DummyInput(),
|
||||
output=DummyOutput(),
|
||||
return_coder=True,
|
||||
)
|
||||
self.assertIsInstance(coder, Coder)
|
||||
self.assertEqual(coder.repo_map.map_mul_no_files, 5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue