a7d6d88f6f
CI / changes (push) Has been cancelled
CI / cd libs/checkpoint (push) Has been cancelled
CI / cd libs/checkpoint-conformance (push) Has been cancelled
CI / cd libs/checkpoint-postgres (push) Has been cancelled
CI / cd libs/checkpoint-sqlite (push) Has been cancelled
CI / cd libs/cli (push) Has been cancelled
CI / cd libs/prebuilt (push) Has been cancelled
CI / cd libs/sdk-py (push) Has been cancelled
CI / cd libs/langgraph (push) Has been cancelled
CI / Check SDK methods matching (push) Has been cancelled
CI / Check CLI schema hasn't changed #3.13 (push) Has been cancelled
CI / CLI integration test (push) Has been cancelled
CI / sdk-py integration test (push) Has been cancelled
CI / CI Success (push) Has been cancelled
baseline / benchmark (push) Has been cancelled
Deploy Redirects to GitHub Pages / deploy (push) Has been cancelled
14 lines
524 B
Python
14 lines
524 B
Python
import pytest
|
|
import requests
|
|
|
|
from langgraph_cli.templates import TEMPLATE_ID_TO_CONFIG
|
|
|
|
|
|
@pytest.mark.parametrize("template_key", TEMPLATE_ID_TO_CONFIG.keys())
|
|
def test_template_urls_work(template_key: str) -> None:
|
|
"""Integration test to verify that all template URLs are reachable."""
|
|
_, _, template_url = TEMPLATE_ID_TO_CONFIG[template_key]
|
|
response = requests.head(template_url)
|
|
# Returns 302 on a successful HEAD request
|
|
assert response.status_code == 302, f"URL {template_url} is not reachable."
|