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`.
This commit is contained in:
Paul Gauthier 2023-05-24 19:05:55 -07:00
parent ec4b5dc2c3
commit 0fa1345ed0

View file

@ -75,8 +75,9 @@ def my_function(arg1, arg2):
other_files = [os.path.join(temp_dir, file) for file in test_files] other_files = [os.path.join(temp_dir, file) for file in test_files]
result = repo_map.get_tags_map(other_files) result = repo_map.get_tags_map(other_files)
# Check if the result contains the expected tags map without ctags # Check if the result contains each specific file in the expected tags map without ctags
self.assertIn("test_file_without_ctags.py:", result) for file in test_files:
self.assertIn(f"{os.path.splitext(file)[0]}:", result)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()