mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
![]() # Context: USER: in test_find_original_update_blocks_unclosed, assert that it throws a valueerror containing the word "Incomplete" ASSISTANT: To add the test for ValueError containing the word "Incomplete" in the `test_find_original_update_blocks_unclosed` function, you can use the `assertRaises` context manager and check if the exception message contains the word "Incomplete". Here's the change: ```python tests/test_utils.py <<<<<<< ORIGINAL utils.find_original_update_blocks(edit) ======= with self.assertRaises(ValueError) as cm: utils.find_original_update_blocks(edit) self.assertIn("Incomplete", str(cm.exception)) >>>>>>> UPDATED ``` |
||
---|---|---|
.. | ||
__init__.py | ||
test_main.py | ||
test_utils.py |