$npx skillfedfor your agent

pytest-vcr

Plugin for managing VCR.py cassettes

With conditionsPyPI TestingReleased Apr 20192.3M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_vcr-1.0.2-py2.py3-none-any.whl
v1.0.2 · released 2019-04-26 · 2 runtime deps: pytest, vcrpy

Yes, if your tests rely on HTTP calls and you're running on Python versions up to 3.7 with compatible pytest versions. The plugin is simple and does its job well. However, be aware it is abandoned—no maintenance since 2019—so if you need compatibility with modern Python or pytest, or if you encounter bugs, you may need to fork it or switch to an alternative. For stable, long-running projects on older Python stacks, it remains a solid choice.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pytest and vcrpy to be installed; relies on pytest's marker system, so pytest must be your test runner.
  • Low friction install with two straightforward runtime dependencies (pytest and vcrpy).
  • However, the project is abandoned—last release was April 2019 and last commit May 2022—so expect no maintenance, bug fixes, or compatibility updates for newer Python or pytest versions.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use this in commercial or proprietary projects with minimal restrictions, provided you retain the license notice.

last release 2019-04-26 (2667 days) · last repo commit 2022-05-07 · 182 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,292,932 downloads/mo, #3,160 on PyPI

Verify before relying

pip install pytest-vcr

# In your test file:
import pytest
from urllib.request import urlopen

@pytest.mark.vcr()
def test_example():
    response = urlopen('http://www.example.com').read()
    assert b'Example' in response
  • Compatibility with pytest versions released after 2019 and Python 3.8+.
  • Whether cassette format remains compatible with recent vcrpy releases.
  • Active maintenance status or community forks that may have continued development.
Same gist for agents: .md · .json

What it is and what it does

pytest-vcr is a pytest plugin that wraps VCR.py to record HTTP interactions during test execution and replay them on subsequent runs. When you annotate a test with @pytest.mark.vcr(), the plugin automatically captures all HTTP requests and responses made by that test into a YAML cassette file, stored alongside your test. On future runs, the plugin replays those recorded interactions instead of making live network calls, making tests faster, more reliable, and independent of external services.

The plugin is designed to be minimal and declarative: you add a decorator to your test, and the cassette management happens automatically. Cassette files are intended to be committed to version control so that all developers and CI systems use the same recorded interactions. The project is in production/stable status but has been abandoned since 2019, meaning it receives no updates for newer Python versions or pytest features.

Use it for

  • Record HTTP interactions during development and replay them in CI to avoid flaky tests caused by network timeouts or external service changes.
  • Test code that calls third-party APIs without requiring valid credentials or network access during test runs.
  • Ensure deterministic test behavior by replaying the same HTTP responses across all environments and developers.
  • Reduce test suite runtime by eliminating network latency from HTTP-dependent tests.
  • Audit and version-control the exact HTTP exchanges your code makes, useful for debugging and compliance.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if your tests rely on HTTP calls and you're running on Python versions up to 3.7 with compatible pytest versions.

The plugin is simple and does its job well. However, be aware it is abandoned—no maintenance since 2019—so if you need compatibility with modern Python or pytest, or if you encounter bugs, you may need to fork it or switch to an alternative. For stable, long-running projects on older Python stacks, it remains a solid choice.

Install

pytest-vcr on PyPI

Before you install

Low friction install with two straightforward runtime dependencies (pytest and vcrpy). However, the project is abandoned—last release was April 2019 and last commit May 2022—so expect no maintenance, bug fixes, or compatibility updates for newer Python or pytest versions.

Requires pytest and vcrpy to be installed; relies on pytest's marker system, so pytest must be your test runner.

License in practice

MIT license is permissive; you can use this in commercial or proprietary projects with minimal restrictions, provided you retain the license notice.

Quickstart

pip install pytest-vcr

# In your test file:
import pytest
from urllib.request import urlopen

@pytest.mark.vcr()
def test_example():
    response = urlopen('http://www.example.com').read()
    assert b'Example' in response

Verify before relying

  • Compatibility with pytest versions released after 2019 and Python 3.8+.
  • Whether cassette format remains compatible with recent vcrpy releases.
  • Active maintenance status or community forks that may have continued development.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
pytestvcrpy
MaintenanceAbandoned 2,667 days since the last release
Last repo commit
First released
Downloads2,292,932 / month, #3,160 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing

Evidence: pytest_vcr-1.0.2-py2.py3-none-any.whl

Tags

Capabilities
pytest vcr cassette recordingmock http requests in testsrecord replay http interactionsvcr.py pytest plugintest fixtures http mockingnetwork request recordingcassette-based test isolation
Topics
http-mockingtest-fixturesvcr-cassettes

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytest vcr cassette recording”

  • pytest-vcrA pytest plugin that integrates VCR.py to record and replay HTTP…
  • vcrpy-unittestProvides a unittest base class that automatically records and replays…
  • pytest-recordingA pytest plugin that records and replays HTTP traffic using VCR.py,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also keboola.vcr · pytest-recording · vcrpy · vcrpy-unittest · betamax · asciinema · pytest-replay · pytest-mock · pytest-progress · pytest-datadir