mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
black formatting
This commit is contained in:
parent
3c26f90269
commit
9a413d351d
4 changed files with 26 additions and 16 deletions
|
@ -13,14 +13,14 @@ class TestMain(TestCase):
|
|||
def test_main_with_empty_dir_no_files_on_command(self):
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
os.chdir(temp_dir)
|
||||
pipe_input = create_input(StringIO(''))
|
||||
pipe_input = create_input(StringIO(""))
|
||||
main([], input=pipe_input, output=DummyOutput())
|
||||
pipe_input.close()
|
||||
|
||||
def test_main_with_empty_dir_new_file(self):
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
os.chdir(temp_dir)
|
||||
pipe_input = create_input(StringIO(''))
|
||||
pipe_input = create_input(StringIO(""))
|
||||
main(["foo.txt"], input=pipe_input, output=DummyOutput())
|
||||
pipe_input.close()
|
||||
self.assertTrue(os.path.exists("foo.txt"))
|
||||
|
@ -29,7 +29,7 @@ class TestMain(TestCase):
|
|||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
os.chdir(temp_dir)
|
||||
subprocess.run(["git", "init"], cwd=temp_dir)
|
||||
pipe_input = create_input(StringIO(''))
|
||||
pipe_input = create_input(StringIO(""))
|
||||
main(["--yes", "foo.txt"], input=pipe_input, output=DummyOutput())
|
||||
pipe_input.close()
|
||||
self.assertTrue(os.path.exists("foo.txt"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue