mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
![]() # Context: USER: the patch in `setUp` is not correcting forcing a return of true ASSISTANT: To fix the patch in `setUp`, you need to start the patch and set the return value to `True`. Here's the change you need to make in the `tests/test_main.py` file: ```python tests/test_main.py <<<<<<< ORIGINAL self.mock_check = patch("aider.main.Coder.check_model_availability") self.mock_check.return_value = True ======= with patch("aider.main.Coder.check_model_availability") as self.mock_check: self.mock_check.return_value = True super().setUp() >>>>>>> UPDATED ``` This change will ensure that the `check_model_availability` method returns `True` during the test setup. |
||
---|---|---|
.. | ||
__init__.py | ||
test_coder.py | ||
test_commands.py | ||
test_io.py | ||
test_main.py | ||
test_repomap.py | ||
test_utils.py |