Skip to content

Commit 4856ef2

Browse files
committed
fix(ci): skip graph node tests when agentic extras not installed
test_graph_nodes.py imports NodeFactory which requires langchain_core. Add pytest.importorskip to gracefully skip when [agentic] not installed.
1 parent f0669cd commit 4856ef2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_graph_nodes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
import os
33
from unittest.mock import MagicMock, patch
44

5+
import pytest
6+
7+
pytest.importorskip("langchain_core", reason="Requires venturalitica[agentic]")
8+
59
from venturalitica.assurance.graph.nodes import NodeFactory
610
from venturalitica.assurance.graph.state import ComplianceState
711

0 commit comments

Comments
 (0)