Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pytest-vcr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-vcr

Plugin for managing VCR.py cassettes

  • 1.0.2
  • PyPI
  • Socket score

Maintainers
1

########## pytest-vcr ##########

|Travis| |AppVeyor| |ReadTheDocs|

.. |Travis| image:: https://travis-ci.org/ktosiek/pytest-vcr.svg?branch=master :target: https://travis-ci.org/ktosiek/pytest-vcr :alt: See Build Status on Travis CI .. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/github/ktosiek/pytest-vcr?branch=master :target: https://ci.appveyor.com/project/ktosiek/pytest-vcr/branch/master :alt: See Build Status on AppVeyor .. |ReadTheDocs| image:: https://readthedocs.org/projects/pytest-vcr/badge/?version=latest :target: http://pytest-vcr.readthedocs.io/en/latest/?badge=latest :alt: See the documentation

Py.test plugin for managing VCR.py <https://vcrpy.readthedocs.io/>_ cassettes.

Quick Start

Install the plugin:

.. code-block:: sh

pip install pytest-vcr

Annotate your tests:

.. code-block:: python

@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 <http://pytest-vcr.readthedocs.io/en/latest/>_.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc