From 626a89364db6610eb2baba5924eb5ae2d81959b1 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 23 Aug 2024 10:14:01 -0700 Subject: [PATCH] feat: Pass repomap_root as parent of parent of parent directory --- tests/basic/test_repomap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/basic/test_repomap.py b/tests/basic/test_repomap.py index 1b99cca0b..ae7a99ebd 100644 --- a/tests/basic/test_repomap.py +++ b/tests/basic/test_repomap.py @@ -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()]