mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
fix: address flake8 errors in test_cmd_read_only_with_tilde_path
This commit is contained in:
parent
955709d6c3
commit
00e4fdbb48
1 changed files with 2 additions and 2 deletions
|
@ -887,7 +887,7 @@ class TestCommands(TestCase):
|
||||||
self.assertEqual(len(coder.abs_read_only_fnames), 0)
|
self.assertEqual(len(coder.abs_read_only_fnames), 0)
|
||||||
|
|
||||||
def test_cmd_read_only_with_tilde_path(self):
|
def test_cmd_read_only_with_tilde_path(self):
|
||||||
with GitTemporaryDirectory() as repo_dir:
|
with GitTemporaryDirectory():
|
||||||
io = InputOutput(pretty=False, yes=False)
|
io = InputOutput(pretty=False, yes=False)
|
||||||
coder = Coder.create(self.GPT35, None, io)
|
coder = Coder.create(self.GPT35, None, io)
|
||||||
commands = Commands(io, coder)
|
commands = Commands(io, coder)
|
||||||
|
@ -899,7 +899,7 @@ class TestCommands(TestCase):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Test the /read-only command with a path containing a tilde
|
# Test the /read-only command with a path containing a tilde
|
||||||
commands.cmd_read_only(f"~/test_read_only_file.txt")
|
commands.cmd_read_only("~/test_read_only_file.txt")
|
||||||
|
|
||||||
# Check if the file was added to abs_read_only_fnames
|
# Check if the file was added to abs_read_only_fnames
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue