From e7fdce0b75bb80bf1524722963d71f4a3456468a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 19 Aug 2024 15:56:10 -0700 Subject: [PATCH] fix: Update test_repomap.py to ensure RepoMap does not change with refresh='files' --- tests/basic/test_repomap.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/basic/test_repomap.py b/tests/basic/test_repomap.py index a16676a3d..979c6e80d 100644 --- a/tests/basic/test_repomap.py +++ b/tests/basic/test_repomap.py @@ -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