Buckets:

download
raw
885 Bytes
# Copyright 2026 Terrene Foundation
# SPDX-License-Identifier: Apache-2.0
"""Pytest rootdir conftest for kailash-pact — installs the LLM cost-guard.
kailash-pact declares its own pytest rootdir, so the repo-root conftest guard
never fires for `pytest packages/kailash-pact`. install_cost_guard withholds
provider secret keys on a bare run, monkeypatches dotenv.load_dotenv so any
module-scope load_dotenv self-scrubs, and actively removes any secret already
present (incl. shell-exported) — provider secrets load only with
KAIZEN_ALLOW_REAL_LLM=1.
"""
from pathlib import Path
from kailash.testing.env_cost_guard import install_cost_guard, scrub_provider_secrets
install_cost_guard(Path(__file__).resolve().parents[2] / ".env")
def pytest_collection_finish(session):
"""Backstop: remove any provider secret re-injected during collection."""
scrub_provider_secrets()

Xet Storage Details

Size:
885 Bytes
·
Xet hash:
edfac0f47effa77ac396abe449fe1aff5cb71e033688c47ca40913b975268ffe

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.