import json import os import sys from pathlib import Path import pytest ROOT = Path(__file__).resolve().parent.parent sys.path.insert(0, str(ROOT)) @pytest.fixture def repo_root(): return str(ROOT) @pytest.fixture def spike_ir(): return json.load(open(ROOT / "modules-ir/l1/l1-s3/spike_instance.json")) @pytest.fixture def ir_schema(): return json.load(open(ROOT / "schemas/ir.schema.json")) @pytest.fixture def registry(): return json.load(open(ROOT / "modules-ir/registry.json")) @pytest.fixture def policy_check_result_schema(): return json.load(open(ROOT / "schemas/policy_check_result.schema.json"))