mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 13:54:59 +00:00
style: Format code with linter
This commit is contained in:
parent
b73d274e01
commit
39fffd81d5
1 changed files with 15 additions and 3 deletions
|
@ -769,13 +769,25 @@ class TestCommands(TestCase):
|
|||
|
||||
# Check if the external file was added to abs_read_only_fnames
|
||||
real_external_file_path = os.path.realpath(external_file_path)
|
||||
self.assertTrue(any(os.path.samefile(real_external_file_path, fname) for fname in coder.abs_read_only_fnames))
|
||||
self.assertTrue(
|
||||
any(
|
||||
os.path.samefile(real_external_file_path, fname)
|
||||
for fname in coder.abs_read_only_fnames
|
||||
)
|
||||
)
|
||||
|
||||
# Test dropping the external read-only file
|
||||
commands.cmd_drop(external_file_path)
|
||||
commands.cmd_drop(Path(external_file_path).name)
|
||||
|
||||
print(coder.abs_read_only_fnames)
|
||||
|
||||
# Check if the file was removed from abs_read_only_fnames
|
||||
self.assertNotIn(real_external_file_path, coder.abs_read_only_fnames)
|
||||
self.assertFalse(
|
||||
any(
|
||||
os.path.samefile(real_external_file_path, fname)
|
||||
for fname in coder.abs_read_only_fnames
|
||||
)
|
||||
)
|
||||
finally:
|
||||
os.unlink(external_file_path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue