mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
![]() # Context: USER: add setup and teardown which getcwd and chdir back ASSISTANT: I will add `setUp` and `tearDown` methods to the `TestWholeFileCoder` class in the `tests/test_wholefile.py` file. The `setUp` method will store the current working directory, and the `tearDown` method will change the working directory back to the original one. ```python tests/test_wholefile.py <<<<<<< ORIGINAL class TestWholeFileCoder(unittest.TestCase): def test_update_files(self): ======= class TestWholeFileCoder(unittest.TestCase): def setUp(self): self.original_cwd = os.getcwd() def tearDown(self): os.chdir(self.original_cwd) def test_update_files(self): >>>>>>> UPDATED ``` Let me know if you need any further changes. |
||
---|---|---|
.. | ||
__init__.py | ||
test_coder.py | ||
test_commands.py | ||
test_editblock.py | ||
test_io.py | ||
test_main.py | ||
test_models.py | ||
test_repomap.py | ||
test_wholefile.py |