mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-15 09:05:00 +00:00
fix: Remove unused mock_stdout in test_main
This commit is contained in:
parent
1953c9815a
commit
0ac6068e1d
1 changed files with 20 additions and 22 deletions
|
@ -180,7 +180,6 @@ class TestMain(TestCase):
|
||||||
self.assertNotIn(abs_ignored_file, coder.abs_fnames)
|
self.assertNotIn(abs_ignored_file, coder.abs_fnames)
|
||||||
|
|
||||||
# Test with --add-gitignore-files set to True
|
# Test with --add-gitignore-files set to True
|
||||||
with patch("sys.stdout", new_callable=StringIO) as mock_stdout:
|
|
||||||
coder = main(
|
coder = main(
|
||||||
["--add-gitignore-files", "--exit", "--yes", abs_ignored_file],
|
["--add-gitignore-files", "--exit", "--yes", abs_ignored_file],
|
||||||
input=DummyInput(),
|
input=DummyInput(),
|
||||||
|
@ -235,7 +234,6 @@ class TestMain(TestCase):
|
||||||
self.assertNotIn(abs_ignored_file, coder.abs_fnames)
|
self.assertNotIn(abs_ignored_file, coder.abs_fnames)
|
||||||
|
|
||||||
# Test with --add-gitignore-files set to True
|
# Test with --add-gitignore-files set to True
|
||||||
with patch("sys.stdout", new_callable=StringIO) as mock_stdout:
|
|
||||||
coder = main(
|
coder = main(
|
||||||
["--add-gitignore-files", "--exit", "--yes"],
|
["--add-gitignore-files", "--exit", "--yes"],
|
||||||
input=DummyInput(),
|
input=DummyInput(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue