mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +00:00
test: Update tests for git integration
This commit is contained in:
parent
6aa05ab11c
commit
756372809e
2 changed files with 2 additions and 17 deletions
|
@ -1363,18 +1363,3 @@ class TestMain(TestCase):
|
|||
)
|
||||
for call in mock_io_instance.tool_warning.call_args_list:
|
||||
self.assertNotIn("Cost estimates may be inaccurate", call[0][0])
|
||||
|
||||
def test_argv_file_respects_git(self):
|
||||
with GitTemporaryDirectory():
|
||||
fname = Path("not_in_git.txt")
|
||||
fname.touch()
|
||||
with open(".gitignore", "w+") as f:
|
||||
f.write("not_in_git.txt")
|
||||
coder = main(
|
||||
argv=["--file", "not_in_git.txt"],
|
||||
input=DummyInput(),
|
||||
output=DummyOutput(),
|
||||
return_coder=True,
|
||||
)
|
||||
self.assertNotIn("not_in_git.txt", str(coder.abs_fnames))
|
||||
self.assertFalse(coder.allowed_to_edit("not_in_git.txt"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue