do not package tests/

This commit is contained in:
Paul Gauthier 2024-07-15 08:40:32 +01:00
parent 7ece31c08a
commit 0860e7b30d
15 changed files with 1 additions and 1 deletions

15
tests/test_urls.py Normal file
View 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}"