mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
improve filehandle hygene
This commit is contained in:
parent
656af5cd83
commit
0f1af1d991
2 changed files with 3 additions and 3 deletions
|
@ -271,7 +271,7 @@ new
|
|||
# Call the run method with a message
|
||||
coder.run(with_message="hi")
|
||||
|
||||
content = open(file1, encoding="utf-8").read()
|
||||
content = Path(file1).read_text(encoding="utf-8")
|
||||
self.assertEqual(content, "one\nnew\nthree\n")
|
||||
|
||||
def test_full_edit_dry_run(self):
|
||||
|
@ -314,7 +314,7 @@ new
|
|||
# Call the run method with a message
|
||||
coder.run(with_message="hi")
|
||||
|
||||
content = open(file1, encoding="utf-8").read()
|
||||
content = Path(file1).read_text(encoding="utf-8")
|
||||
self.assertEqual(content, orig_content)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue