Artifex/tests/test_langgraph_runtime_adapter.py
2026-08-15 17:08:12 +07:00

17 lines
553 B
Python

from __future__ import annotations
import importlib.util
import pytest
from graph.langgraph_runtime import LangGraphRuntime
def test_langgraph_runtime_reports_missing_dependency() -> None:
if importlib.util.find_spec("langgraph") is not None:
pytest.skip("langgraph is installed; adapter execution is covered by integration parity tests")
runtime = LangGraphRuntime()
with pytest.raises(RuntimeError, match="langgraph package|NodeHandlerRegistry"):
runtime.run_until_terminal_or_paused(None) # type: ignore[arg-type]