Initial Release
First public release of subprocess-vcr, a lightweight library for recording and replaying subprocess calls in tests.
Features
- Record subprocess calls to YAML cassettes
- Replay recorded calls in tests for deterministic, fast testing
- Built-in filters for common dynamic values (timestamps, temp paths)
- Pytest fixtures for easy integration
- Type hints and modern Python patterns
Installation
pip install subprocess-vcrQuick Start
import subprocess_vcr
with subprocess_vcr.use_cassette("test_cassette.yaml"):
result = subprocess.run(["echo", "Hello, World!"], capture_output=True)See the README for more examples and documentation.