Skip to main content

Plugin for managing VCR.py cassettes

Project description

See Build Status on Travis CI See Build Status on AppVeyor See the documentation

Py.test plugin for managing VCR.py cassettes.

Quick Start

Install the plugin:

pip install pytest-vcr

Annotate your tests:

@pytest.mark.vcr()
def test_iana():
    response = urlopen('http://www.iana.org/domains/reserved').read()
    assert b'Example domains' in response

And that’s it! A new file cassettes/test_iana.yaml will be created next to your test file on the first run. This file should be committed to a VCS.

For more examples and configuration options see the documention on ReadTheDocs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytest_vcr-1.0.1-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest_vcr-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_vcr-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for pytest_vcr-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5e5bfa522667007723db331823d5d351724da2d95e88bd4cf141fa4e267faba2
MD5 a886947f52c9eddd4a6ef456bda32dc9
BLAKE2b-256 1500068a226c2196c356f1370c3c429b6791247e83d3d5a95a1e78da4bde1678

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page