mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
fix: Update test_repomap.py to ensure RepoMap does not change with refresh='files'
This commit is contained in:
parent
ba6ec1a94c
commit
e7fdce0b75
1 changed files with 8 additions and 2 deletions
|
@ -85,9 +85,15 @@ class TestRepoMap(unittest.TestCase):
|
||||||
|
|
||||||
# Get another repo map
|
# Get another repo map
|
||||||
second_map = repo_map.get_repo_map([], other_files)
|
second_map = repo_map.get_repo_map([], other_files)
|
||||||
self.assertNotEqual(
|
self.assertEqual(
|
||||||
initial_map, second_map, "RepoMap should change with refresh='files'"
|
initial_map, second_map, "RepoMap should not change with refresh='files'"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
other_files = [
|
||||||
|
os.path.join(temp_dir, "file1.py"),
|
||||||
|
os.path.join(temp_dir, "file2.py"),
|
||||||
|
]
|
||||||
|
second_map = repo_map.get_repo_map([], other_files)
|
||||||
self.assertIn("functionNEW", second_map)
|
self.assertIn("functionNEW", second_map)
|
||||||
|
|
||||||
# close the open cache files, so Windows won't error
|
# close the open cache files, so Windows won't error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue