fix: normalize path in cmd_drop test for cross-platform compatibility

This commit is contained in:
Paul Gauthier 2024-11-30 09:36:21 -08:00 committed by Paul Gauthier (aider)
parent 0ee9b74c0f
commit 871030dadb

View file

@ -236,7 +236,7 @@ class TestCommands(TestCase):
self.assertIn(str(Path("test_dir/test_file2.txt").resolve()), coder.abs_fnames)
self.assertIn(str(Path("test_dir/another_dir/test_file.txt").resolve()), coder.abs_fnames)
commands.cmd_drop("test_dir/another_dir")
commands.cmd_drop(str(Path("test_dir/another_dir")))
self.assertIn(str(Path("test_dir/test_file1.txt").resolve()), coder.abs_fnames)
self.assertIn(str(Path("test_dir/test_file2.txt").resolve()), coder.abs_fnames)
self.assertNotIn(