mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
use pytest.ini testpaths to order testing
This commit is contained in:
parent
2d09af61ba
commit
896e79bcd1
16 changed files with 6 additions and 4 deletions
15
tests/basic/test_urls.py
Normal file
15
tests/basic/test_urls.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
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}"
|
Loading…
Add table
Add a link
Reference in a new issue