VCR recording, sanitization, and validation for Keboola component HTTP interactions.
pip install keboola.vcrfrom keboola.vcr.recorder import VCRRecorder
from keboola.vcr.sanitizers import DefaultSanitizer
recorder = VCRRecorder(
cassette_dir="tests/cassettes/my_test",
secrets={"api_key": "secret"},
)- Recording: Captures real HTTP interactions via vcrpy and stores them as JSON cassettes
- Sanitization: Redacts secrets, tokens, and sensitive fields before saving cassettes
- Scaffolding: Generates test directory structures from component config definitions
- Validation: Compares output snapshots to detect regressions
uv sync --all-groups
uv run pytest tests/