fix(tests): skip Terraform tests when tree-sitter-hcl not installed

pytest.importorskip at module level matches the pattern used for other
optional extras (sql, dm) so CI passes without the optional dep.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Safi
2026-06-05 21:43:30 +01:00
parent 200edecea5
commit 30f6f6fb85
+4
View File
@@ -1,6 +1,10 @@
"""Tests for the Terraform/HCL extractor (graphify/extract.py, issue #187)."""
from __future__ import annotations
import pytest
pytest.importorskip("tree_sitter_hcl", reason="tree-sitter-hcl not installed; install with: uv tool install graphifyy[terraform]")
from pathlib import Path
from graphify.build import build_from_json