mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
![]() # 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 ``` |
||
---|---|---|
.. | ||
__init__.py | ||
test_coder.py | ||
test_commands.py | ||
test_editblock.py | ||
test_io.py | ||
test_main.py | ||
test_models.py | ||
test_repo.py | ||
test_repomap.py | ||
test_sendchat.py | ||
test_udiff.py | ||
test_urls.py | ||
test_wholefile.py |