{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"A pytest plugin that records and replays HTTP traffic using VCR.py, letting you test code that makes network requests without hitting the network every time.","skillfed_tags":["http-mocking","test-isolation","vcr-integration"],"use_cases":["Test code that calls external APIs without making real network requests during CI/CD runs","Record API responses once, then run tests offline or in isolated environments","Prevent tests from failing due to external service downtime or rate limiting","Block network access globally to catch unintended HTTP calls in your test suite","Filter sensitive headers or query parameters from cassettes before committing them to version control"],"what_it_does":"pytest-recording is a pytest plugin that integrates vcrpy to record HTTP interactions during test runs and replay them on subsequent runs. Instead of mocking HTTP responses manually or hitting live APIs in tests, you decorate test functions with @pytest.mark.vcr and the plugin automatically captures requests and responses into YAML cassette files, then replays them without network access. This makes tests faster, more reliable, and independent of external services.\n\nThe plugin offers straightforward configuration through pytest marks and fixtures, supports combining multiple cassettes, can block network access entirely to prevent accidental live requests, and includes a rewrite mode to regenerate cassettes from scratch. It integrates with vcrpy's full API, allowing custom matchers, persisters, and fine-grained control over what gets recorded and filtered.","worth_installing":"Yes. This is a well-maintained, actively developed plugin with no security issues, low install friction, and a clear use case for any project testing code that makes HTTP requests. The permissive MIT license poses no barrier. Install it if you want to replace live API calls or manual mocks with recorded cassettes in pytest."},"id":"pytest-recording","links":{"html":"https://skillfed.io/packages/pytest-recording","md":"https://skillfed.io/packages/pytest-recording.md","pypi":"https://pypi.org/project/pytest-recording/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-05-08","license_spdx":"MIT","license_treatment":"permissive","name":"pytest-recording","python_support":"supports_current","summary":"A pytest plugin powered by VCR.py to record and replay HTTP traffic"},"popularity":{"monthly_downloads":6134948,"position":1966,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.13.4"}
