aider/tests
Paul Gauthier 72a59e120c aider: Modified final test to check if a ValueError is raised.
# Context:
USER: the final test SHOULD raise ValueError
ASSISTANT: I understand that you want the final test in `tests/test_utils.py` to raise a `ValueError`. I will modify the test to check for the exception.

```python
tests/test_utils.py
<<<<<<< ORIGINAL
        # Should raise a ValueError!
        list(utils.find_original_update_blocks(edit))
=======
        with self.assertRaises(ValueError):
            list(utils.find_original_update_blocks(edit))
>>>>>>> UPDATED
```

Now, the final test in `tests/test_utils.py` will check if a `ValueError` is raised.
2023-05-29 07:14:42 -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 isort 2023-05-28 22:47:38 -07:00
test_commands.py isort 2023-05-28 22:47:38 -07:00
test_io.py isort 2023-05-28 22:47:38 -07:00
test_main.py isort 2023-05-28 22:47:38 -07:00
test_repomap.py isort 2023-05-28 22:47:38 -07:00
test_utils.py aider: Modified final test to check if a ValueError is raised. 2023-05-29 07:14:42 -07:00