feat: Pass repomap_root as parent of parent of parent directory

This commit is contained in:
Paul Gauthier (aider) 2024-08-23 10:14:01 -07:00
parent eb7870c2c1
commit 626a89364d

View file

@ -440,7 +440,8 @@ class TestRepoMapAllLanguages(unittest.TestCase):
# Initialize RepoMap with the sample code base as root
io = InputOutput()
repo_map = RepoMap(main_model=self.GPT35, root=str(sample_code_base), io=io)
repomap_root = Path(__file__).parent.parent.parent
repo_map = RepoMap(main_model=self.GPT35, root=str(sample_code_base), io=io, repomap_root=str(repomap_root))
# Get all files in the sample code base
other_files = [str(f) for f in sample_code_base.rglob("*") if f.is_file()]