Skip to content

Commit c8e5266

Browse files
author
DevForge Engineer
committed
fix(test): guard mcp_server tests with pytest.importorskip(mcp) for optional dep
1 parent f3bf097 commit c8e5266

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_mcp_server.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
import sys
66
from pathlib import Path
77

8+
import pytest
9+
810
sys.path.insert(0, str(Path(__file__).parent.parent / "src"))
911

12+
pytest.importorskip("mcp", reason="mcp is an optional dependency")
13+
1014
from schemaforge.mcp_server import _FORMATS, create_server
1115

1216

0 commit comments

Comments
 (0)