pytest-recording (VCR.py) Testing Overview pytest-recording wraps VCR.py to record HTTP interactions as YAML cassettes, enabling deterministic tests without live API calls. Quick Reference Running Tests Recording Modes | Mode | Flag | Behavior | |------|------|----------| | | | Only replay, fail if no cassette | | | (default) | Record if no cassette exists | | | | Record new requests, keep existing | | | | Always record, overwrite existing | | | | Delete and re-record all cassettes | Writing VCR Tests Basic test with VCR: Custom cassette name: Multiple cassettes: VCR Configuration in conftest…