fix: Update test_repomap.py to ensure RepoMap does not change with refresh='files'

This commit is contained in:
Paul Gauthier 2024-08-19 15:56:10 -07:00 committed by Paul Gauthier (aider)
parent ba6ec1a94c
commit e7fdce0b75

View file

@ -85,9 +85,15 @@ class TestRepoMap(unittest.TestCase):
# Get another repo map
second_map = repo_map.get_repo_map([], other_files)
self.assertNotEqual(
initial_map, second_map, "RepoMap should change with refresh='files'"
self.assertEqual(
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)
# close the open cache files, so Windows won't error