use pytest.ini testpaths to order testing

This commit is contained in:
Paul Gauthier 2024-07-16 10:33:42 +01:00
parent 2d09af61ba
commit 896e79bcd1
16 changed files with 6 additions and 4 deletions

View file

@ -1,15 +0,0 @@
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}"