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.
Metadata
Release files for pytest-vcr 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-vcr-1.0.2.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_vcr-1.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 7.9 kB
Release files / pytest-vcr-1.0.2.tar.gz
| Download URL | pytest-vcr-1.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23ee51b75abbcc43d926272773aae4f39f93aceb75ed56852d0bf618f92e1896
|
|
BLAKE2b-256 checksum How to use checksums |
1a60104c619483c1a42775d3f8b27293f1ecfc0728014874d065e68cb9702d49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pytest_vcr-1.0.2-py2.py3-none-any.whl
| Download URL | pytest_vcr-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2f316e0539399bea0296e8b8401145c62b6f85e9066af7e57b6151481b0d6d9c
|
|
BLAKE2b-256 checksum How to use checksums |
9dd3ff520d11e6ee400602711d1ece8168dcfc5b6d8146fb7db4244a6ad6a9c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|