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 stack_instance(): return json.load(open(ROOT / "modules/l1/s3/instance.json")) @pytest.fixture def stack_schema(): return json.load(open(ROOT / "schemas/stack.schema.json")) @pytest.fixture def registry(): return json.load(open(ROOT / "modules/registry.json")) @pytest.fixture def policy_check_result_schema(): return json.load(open(ROOT / "schemas/policy_check_result.schema.json"))