aider/tests
Paul Gauthier 52a9df5b34 aider: Added a test function to check if the pretty attribute of the InputOutput class is set to False when the NO_COLOR environment variable is set.
# Context:
USER: add a test for NO_COLOR
ASSISTANT: To add a test for the `NO_COLOR` environment variable, we will create a new test function in the `tests/test_io.py` file. Since this file does not exist, we will create it first.

```python
tests/test_io.py
<<<<<<< ORIGINAL
=======
import os
import unittest
from unittest.mock import patch
from aider.io import InputOutput

class TestInputOutput(unittest.TestCase):
    def test_no_color_environment_variable(self):
        with patch.dict(os.environ, {"NO_COLOR": "1"}):
            io = InputOutput()
            self.assertFalse(io.pretty)

if __name__ == "__main__":
    unittest.main()
>>>>>>> UPDATED
```

This test function checks if the `pretty` attribute of the `InputOutput` class is set to `False` when the `NO_COLOR` environment variable is set.
2023-05-27 18:07:52 -07:00
..
__init__.py aider: Added empty __init__.py file to tests directory to fix ModuleNotFoundError when running tests. 2023-05-11 17:12:42 -07:00
test_coder.py Fixed quote stripping of gpt3.5 commit messages 2023-05-27 17:05:57 -07:00
test_commands.py fixed test 2023-05-27 06:25:16 -07:00
test_io.py aider: Added a test function to check if the pretty attribute of the InputOutput class is set to False when the NO_COLOR environment variable is set. 2023-05-27 18:07:52 -07:00
test_main.py aider: Added dummy values for user.email and user.name after running git init in test_main_with_empty_git_dir_new_file function. 2023-05-27 14:06:09 -07:00
test_repomap.py fixed bug found by testing 2023-05-24 19:09:05 -07:00
test_utils.py fix bug if ORIG/UPD block is missing trailing newline; added test 2023-05-12 13:30:39 -07:00