aider/tests
Paul Gauthier 2d55d532be aider: Add test to ensure all URLs return a 200 status code.
# Aider chat conversation:

USER: write a test that makes sure all the urls are 200

ASSISTANT: Here is the test to ensure all the URLs return a 200 status code:

tests/test_urls.py
```python
<<<<<<< SEARCH
=======
import requests
from aider import urls

def test_urls():
    url_attributes = [attr for attr in dir(urls) if not callable(getattr(urls, attr)) and not attr.startswith("__")]
    for attr in url_attributes:
        url = getattr(urls, attr)
        response = requests.get(url)
        assert response.status_code == 200, f"URL {url} returned status code {response.status_code}"
>>>>>>> REPLACE
```
2024-06-08 12:55:13 -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 updated mocks of Coder.send() to fix tests 2024-04-27 14:08:21 -07:00
test_commands.py Handle existing dirnames with [globby] chars, with test #195 2024-04-30 15:50:24 -07:00
test_editblock.py updated mocks of Coder.send() to fix tests 2024-04-27 14:08:21 -07:00
test_io.py fix unicode err 2024-05-23 15:02:31 -07:00
test_main.py added test coverage #585 2024-05-02 13:01:41 -07:00
test_models.py fixed tests 2024-04-22 14:14:06 -07:00
test_repo.py fixed tests 2024-04-22 14:14:06 -07:00
test_repomap.py fixed tests 2024-04-22 14:14:06 -07:00
test_sendchat.py fixed tests 2024-05-09 14:35:57 -07:00
test_udiff.py handle multiple udiffs inside a single fenced block 2024-01-04 12:53:01 -08:00
test_urls.py aider: Add test to ensure all URLs return a 200 status code. 2024-06-08 12:55:13 -07:00
test_wholefile.py fixed test to work with yield 2024-04-28 13:26:29 -07:00