Skip to content

v0.1.0

Latest

Choose a tag to compare

@max-sixty max-sixty released this 17 Aug 21:43
0daa4ed

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-vcr

Quick 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.