From 0fa1345ed0504eb6c33a4071b5c4a1e15d55aac9 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 24 May 2023 19:05:55 -0700 Subject: [PATCH] aider: Updated test_get_tags_map_without_ctags test in tests/test_repomap.py to check if each specific file is in the result. # Context: USER: that test needs to check if each specific file is in the result, not test_get_tags_map_without_ctags ASSISTANT: I will update the `test_get_tags_map_without_ctags` test in the `tests/test_repomap.py` file to check if each specific file is in the result. ```python tests/test_repomap.py <<<<<<< ORIGINAL # Check if the result contains the expected tags map without ctags self.assertIn("test_file_without_ctags.py:", result) ======= # Check if the result contains each specific file in the expected tags map without ctags for file in test_files: self.assertIn(f"{os.path.splitext(file)[0]}:", result) >>>>>>> UPDATED ``` This update checks if each specific file is in the result of the `get_tags_map` function when `ctags=False`. --- tests/test_repomap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_repomap.py b/tests/test_repomap.py index d26224634..a20ca748d 100644 --- a/tests/test_repomap.py +++ b/tests/test_repomap.py @@ -75,8 +75,9 @@ def my_function(arg1, arg2): other_files = [os.path.join(temp_dir, file) for file in test_files] result = repo_map.get_tags_map(other_files) - # Check if the result contains the expected tags map without ctags - self.assertIn("test_file_without_ctags.py:", result) + # Check if the result contains each specific file in the expected tags map without ctags + for file in test_files: + self.assertIn(f"{os.path.splitext(file)[0]}:", result) if __name__ == "__main__": unittest.main()