cli[minor]: Add langgraph new command (#2369)

Adds a "new" command to create langgraph application from a template.
This commit is contained in:
Eugene Yurtsev
2024-11-12 14:30:51 -05:00
committed by GitHub
parent a73f9affab
commit 2bcf1c0a20
9 changed files with 337 additions and 2 deletions
@@ -0,0 +1,13 @@
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."