Skip to main content

Plugin for managing cassettes

Project description

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

Py.test plugin for managing cassettes.

Quick Start

Install the plugin:

pip install pytest-vcr

Annotate your tests:

def test_iana():
    response = urlopen('').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.

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-1.0.2.tar.gz (3.8 kB view hashes)

Uploaded source

Built Distribution

pytest_vcr-1.0.2-py2.py3-none-any.whl (4.1 kB view hashes)

Uploaded py2 py3

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