A library for recording, sanitizing, and validating HTTP and database interactions for Keboola component tests using VCR-based cassettes. Version 0.5.0 adds DB VCR support for recording/replaying database interactions. Regular releases, active development.
pip install keboola-vcrVerified import paths — ran on the pinned version, not inferred.
Basic usage: create a KeboolaVcr instance with sanitizers and use a cassette for recording/replaying HTTP interactions.
Regenerate cassettes by deleting them and re-running tests with record_mode='all'.
Use `from keboola_vcr import KeboolaVcr`.
Manually create an SQLAlchemy engine and pass it to DbVcr.