pytest-vcr


Namepytest-vcr JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/ktosiek/pytest-vcr
SummaryPlugin for managing VCR.py cassettes
upload_time2019-04-26 19:04:00
maintainerTomasz Kontusz
docs_urlNone
authorTomasz Kontusz
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            ##########
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/>`_.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ktosiek/pytest-vcr",
    "name": "pytest-vcr",
    "maintainer": "Tomasz Kontusz",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "tomasz.kontusz@gmail.com",
    "keywords": "",
    "author": "Tomasz Kontusz",
    "author_email": "tomasz.kontusz@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1a/60/104c619483c1a42775d3f8b27293f1ecfc0728014874d065e68cb9702d49/pytest-vcr-1.0.2.tar.gz",
    "platform": "",
    "description": "##########\npytest-vcr\n##########\n\n|Travis| |AppVeyor| |ReadTheDocs|\n\n.. |Travis| image:: https://travis-ci.org/ktosiek/pytest-vcr.svg?branch=master\n    :target: https://travis-ci.org/ktosiek/pytest-vcr\n    :alt: See Build Status on Travis CI\n.. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/github/ktosiek/pytest-vcr?branch=master\n    :target: https://ci.appveyor.com/project/ktosiek/pytest-vcr/branch/master\n    :alt: See Build Status on AppVeyor\n.. |ReadTheDocs| image:: https://readthedocs.org/projects/pytest-vcr/badge/?version=latest\n    :target: http://pytest-vcr.readthedocs.io/en/latest/?badge=latest\n    :alt: See the documentation\n\n\nPy.test plugin for managing `VCR.py <https://vcrpy.readthedocs.io/>`_ cassettes.\n\n\nQuick Start\n===========\n\nInstall the plugin:\n\n.. code-block:: sh\n\n    pip install pytest-vcr\n\n\nAnnotate your tests:\n\n.. code-block:: python\n\n    @pytest.mark.vcr()\n    def test_iana():\n        response = urlopen('http://www.iana.org/domains/reserved').read()\n        assert b'Example domains' in response\n\nAnd that's it!\nA new file ``cassettes/test_iana.yaml`` will be created next to your test file on the first run.\nThis file should be committed to a VCS.\n\nFor more examples and configuration options see the `documention on ReadTheDocs <http://pytest-vcr.readthedocs.io/en/latest/>`_.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Plugin for managing VCR.py cassettes",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/ktosiek/pytest-vcr"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9dd3ff520d11e6ee400602711d1ece8168dcfc5b6d8146fb7db4244a6ad6a9c3",
                "md5": "1dc5df3e8eda7ff3e36e0566bed4a429",
                "sha256": "2f316e0539399bea0296e8b8401145c62b6f85e9066af7e57b6151481b0d6d9c"
            },
            "downloads": -1,
            "filename": "pytest_vcr-1.0.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1dc5df3e8eda7ff3e36e0566bed4a429",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 4137,
            "upload_time": "2019-04-26T19:03:57",
            "upload_time_iso_8601": "2019-04-26T19:03:57.034988Z",
            "url": "https://files.pythonhosted.org/packages/9d/d3/ff520d11e6ee400602711d1ece8168dcfc5b6d8146fb7db4244a6ad6a9c3/pytest_vcr-1.0.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a60104c619483c1a42775d3f8b27293f1ecfc0728014874d065e68cb9702d49",
                "md5": "d8e28de3c888b51af072b85886cac5fc",
                "sha256": "23ee51b75abbcc43d926272773aae4f39f93aceb75ed56852d0bf618f92e1896"
            },
            "downloads": -1,
            "filename": "pytest-vcr-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d8e28de3c888b51af072b85886cac5fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3810,
            "upload_time": "2019-04-26T19:04:00",
            "upload_time_iso_8601": "2019-04-26T19:04:00.806776Z",
            "url": "https://files.pythonhosted.org/packages/1a/60/104c619483c1a42775d3f8b27293f1ecfc0728014874d065e68cb9702d49/pytest-vcr-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-04-26 19:04:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ktosiek",
    "github_project": "pytest-vcr",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "appveyor": true,
    "tox": true,
    "lcname": "pytest-vcr"
}
        
Elapsed time: 0.06524s