aider/tests
Paul Gauthier 4bb043f5c0 aider: Replaced the usage of create_pipe_input() with create_input(StringIO('')) in the test cases.
# Context:
USER: try using create_input(StringIO('')) in the tests
ASSISTANT: I understand that you want to use `create_input(StringIO(''))` in the tests. However, I need more information about which test cases you want to apply this change to and how you want to use it. Please provide more details or examples.
USER: the ones that currently use create_pipe_input()
ASSISTANT: I see that you want to replace `create_pipe_input()` with `create_input(StringIO(''))` in the test cases. Here are the changes for the `tests/test_main.py` file:

```python
tests/test_main.py
<<<<<<< ORIGINAL
from prompt_toolkit.input import create_pipe_input
=======
from prompt_toolkit.input import create_input
from io import StringIO
>>>>>>> UPDATED
```

```python
tests/test_main.py
<<<<<<< ORIGINAL
            pipe_input = create_pipe_input()
=======
            pipe_input = create_input(StringIO(''))
>>>>>>> UPDATED
```

```python
tests/test_main.py
<<<<<<< ORIGINAL
            pipe_input = create_pipe_input()
=======
            pipe_input = create_input(StringIO(''))
>>>>>>> UPDATED
```

```python
tests/test_main.py
<<<<<<< ORIGINAL
            pipe_input = create_pipe_input()
=======
            pipe_input = create_input(StringIO(''))
>>>>>>> UPDATED
```

These changes will replace the usage of `create_pipe_input()` with `create_input(StringIO(''))` in the test cases.
2023-05-13 07:53:28 -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_main.py aider: Replaced the usage of create_pipe_input() with create_input(StringIO('')) in the test cases. 2023-05-13 07:53:28 -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