mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
aider: Added assertion to confirm that foo.txt exists after main exits in test_main_with_empty_dir_new_file.
# Context: USER: in test_main_with_empty_dir_new_file, confirm that foo.txt exists after main exists ASSISTANT: To confirm that `foo.txt` exists after `main` exits, you can add an assertion in the `test_main_with_empty_dir_new_file` test case. Here's the change: ```python tests/test_main.py <<<<<<< ORIGINAL main(['foo.txt']) sys.stdin = save_stdin ======= main(['foo.txt']) sys.stdin = save_stdin self.assertTrue(os.path.exists('foo.txt')) >>>>>>> UPDATED ```
This commit is contained in:
parent
e500f8e37f
commit
7a29a2911a
1 changed files with 1 additions and 0 deletions
|
@ -22,3 +22,4 @@ class TestMain(TestCase):
|
||||||
sys.stdin = dev_null
|
sys.stdin = dev_null
|
||||||
main(['foo.txt'])
|
main(['foo.txt'])
|
||||||
sys.stdin = save_stdin
|
sys.stdin = save_stdin
|
||||||
|
self.assertTrue(os.path.exists('foo.txt'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue