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 Distribution
pytest-vcr-1.0.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file pytest-vcr-1.0.0.tar.gz
.
File metadata
- Download URL: pytest-vcr-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de34c0acc3c20304cced2632c98b4ade3878ad2ebd0a97dd853d14ab85f5589 |
|
MD5 | 0e5c524e03274fa2f6a222b188e52f75 |
|
BLAKE2b-256 | 49f8cfe149e389d37b7300175f390c4ac169ce976deb399a0fadb0377929e56a |
File details
Details for the file pytest_vcr-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_vcr-1.0.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc0912e013dc4ad2717dcf930b0a6ff4ac03450b97f4b08e6f1ea9a7de6b7ed |
|
MD5 | ecd5d24afd6741e9a5d2c690a1f513a9 |
|
BLAKE2b-256 | b8e554f18ed5b3b3a1bb1894ed33c20cdd0d190aec2ddb589bfb739c8712e245 |