mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: format code with black
This commit is contained in:
parent
4a3e8ba41d
commit
e606eb33a5
1 changed files with 2 additions and 2 deletions
|
@ -852,13 +852,13 @@ This command will print 'Hello, World!' to the console."""
|
|||
new_file = "new_file.txt"
|
||||
|
||||
# Mock Path.touch() to raise OSError
|
||||
with patch('pathlib.Path.touch', side_effect=OSError("Permission denied")):
|
||||
with patch("pathlib.Path.touch", side_effect=OSError("Permission denied")):
|
||||
# Create the coder with a new file
|
||||
coder = Coder.create(self.GPT35, "diff", io=io, fnames=[new_file])
|
||||
|
||||
# Check if the coder was created successfully
|
||||
self.assertIsInstance(coder, Coder)
|
||||
|
||||
|
||||
# Check if the new file is not in abs_fnames
|
||||
self.assertNotIn(new_file, [os.path.basename(f) for f in coder.abs_fnames])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue