From 30f6f6fb85660ed5ee321cc71da67c3aa60fad1e Mon Sep 17 00:00:00 2001 From: Safi Date: Fri, 5 Jun 2026 21:43:30 +0100 Subject: [PATCH] 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 --- tests/test_terraform.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_terraform.py b/tests/test_terraform.py index 2049078b..02e0f866 100644 --- a/tests/test_terraform.py +++ b/tests/test_terraform.py @@ -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