Plugin for managing VCR.py cassettes
Project description
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
File details
Details for the file pytest_vcr-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_vcr-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22e8f14d5efca9cdc969439d6461de7b1fe06ffbca6a7b628f061d978893f32 |
|
MD5 | 8212b2818762b12b62111eeafbc1700e |
|
BLAKE2b-256 | 7125871ce930311407bf25a2ab33cf988f738cfb66449c402558109722e9e264 |