pytest-vcr 1.0.2
pip install pytest-vcr
Latest version
Released:
Plugin for managing VCR.py cassettes
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tomasz Kontusz
- Maintainer: Tomasz Kontusz
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tomasz Kontusz
- Maintainer: Tomasz Kontusz
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-vcr-1.0.2.tar.gz
.
File metadata
- Download URL: pytest-vcr-1.0.2.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 | 23ee51b75abbcc43d926272773aae4f39f93aceb75ed56852d0bf618f92e1896 |
|
MD5 | d8e28de3c888b51af072b85886cac5fc |
|
BLAKE2b-256 | 1a60104c619483c1a42775d3f8b27293f1ecfc0728014874d065e68cb9702d49 |
File details
Details for the file pytest_vcr-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_vcr-1.0.2-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 | 2f316e0539399bea0296e8b8401145c62b6f85e9066af7e57b6151481b0d6d9c |
|
MD5 | 1dc5df3e8eda7ff3e36e0566bed4a429 |
|
BLAKE2b-256 | 9dd3ff520d11e6ee400602711d1ece8168dcfc5b6d8146fb7db4244a6ad6a9c3 |