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 Distribution

pytest-vcr-0.3.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pytest_vcr-0.3.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-vcr-0.3.0.tar.gz.

File metadata

  • Download URL: pytest-vcr-0.3.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-vcr-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b3d1f0a470e172a5f8ef60b3f1daf3ff1ff60a43280a9cdfb24a8c53e3e9c12c
MD5 0dd908a3397464cfac1bd6f7996927ca
BLAKE2b-256 8cf0f923f6b039ff44534b7db5e31807f874d938d8c5ea72dcae90b4d89d616d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_vcr-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 13f2e24ab4b8674e012ca23df50e34f0b322a8b8cf8aa80f2b432ae95a92e298
MD5 87adaffbc0bc6528333b8a9548d704d5
BLAKE2b-256 39e3b2bb2593fd3670f6eb273641e58cc67e7258de4e7ebbecf99b35fc0c517c

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