mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
15 lines
410 B
Python
15 lines
410 B
Python
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}"
|