{ "info": { "author": "Emily Bache", "author_email": "emily@bacheconsulting.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "====================\npytest-approvaltests\n====================\n\n.. image:: https://img.shields.io/pypi/v/pytest-approvaltests.svg\n :target: https://pypi.org/project/pytest-approvaltests\n :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-approvaltests.svg\n :target: https://pypi.org/project/pytest-approvaltests\n :alt: Python versions\n\n.. image:: https://travis-ci.org/emilybache/pytest-approvaltests.svg?branch=master\n :target: https://travis-ci.org/emilybache/pytest-approvaltests\n :alt: See Build Status on Travis CI\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/emilybache/pytest-approvaltests?branch=master\n :target: https://ci.appveyor.com/project/emilybache/pytest-approvaltests/branch/master\n :alt: See Build Status on AppVeyor\n\nA plugin to use approvaltests with pytest\n\n\nFeatures\n--------\n\n - command line options to choose which reporter to use on approval test failure\n - define your own diff reporter to use on approval test failure\n\n\nRequirements\n------------\n\napprovaltests\n\n\nInstallation\n------------\n\nYou can install \"pytest-approvaltests\" via `pip`_ from `PyPI`_::\n\n $ pip install pytest-approvaltests\n\n\nUsage\n-----\n\nSee also the documentation for `approval tests `_\n\nWhen your approval tests fail and you are working interactively, you might like\nit to open another diff tool than when you are on a CI server for example.\n\nThis plugin allows you to configure pytest with which diff tool to use when tests fail.\n\nTo set the default reporter to 'PythonNative', suitable for use on the command line:\n\n pytest --approvaltests-use-reporter='PythonNative'\n\nTo define your own diff reporter, perhaps a program with a rich GUI installed only on your developer workstation:\n\n pytest --approvaltests-add-reporter=\"diff_program\"\n\nThe value for 'approvaltests-add-reporter' should be an executable program that can diff two files received as arguments on the command line like this:\n\n diff_program filepath1 filepath2\n\nif it takes additional arguments, add them with 'approvaltests-add-reporter-args':\n\n pytest --approvaltests-add-reporter=\"diff_program\" --approvaltests-add-reporter-args=\"arg1,arg2\"\n\nThey will be inserted like this:\n\n diff_program arg1 arg2 filepath1 filepath2\n\n\n\nContributing\n------------\nContributions are very welcome. Tests can be run with `tox`_, please ensure\nthe coverage at least stays the same before you submit a pull request.\n\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"pytest-approvaltests\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\n.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause\n.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt\n.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/emilybache/pytest-approvaltests/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.io/en/latest/\n.. _`pip`: https://pypi.org/project/pip/\n.. _`PyPI`: https://pypi.org/project", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/emilybache/pytest-approvaltests", "keywords": "", "license": "MIT", "maintainer": "Emily Bache", "maintainer_email": "emily@bacheconsulting.com", "name": "pytest-approvaltests", "package_url": "https://pypi.org/project/pytest-approvaltests/", "platform": "", "project_url": "https://pypi.org/project/pytest-approvaltests/", "project_urls": { "Homepage": "https://github.com/emilybache/pytest-approvaltests" }, "release_url": "https://pypi.org/project/pytest-approvaltests/0.1.1/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "A plugin to use approvaltests with pytest", "version": "0.1.1" }, "last_serial": 5622166, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9d8481cdc63a6adae93928f93508da7f", "sha256": "de1d3b50d03b3463af3ec43ddfb49e047358c823686a336d551b96625a297722" }, "downloads": -1, "filename": "pytest_approvaltests-0.1.0-py3.7.egg", "has_sig": false, "md5_digest": "9d8481cdc63a6adae93928f93508da7f", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4674, "upload_time": "2019-06-27T14:09:37", "url": "https://files.pythonhosted.org/packages/f9/f4/a947667ca9065e054e23587a2bef7f05bd49c56e7c826016ed65a01a5284/pytest_approvaltests-0.1.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "86a0fd3a33e378f73d5934a041dd3669", "sha256": "271c0e968c7078e043f9d7528aa0ea4e82667cb81e1db77796e1bc6793fd8199" }, "downloads": -1, "filename": "pytest_approvaltests-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "86a0fd3a33e378f73d5934a041dd3669", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4595, "upload_time": "2019-06-27T14:09:33", "url": "https://files.pythonhosted.org/packages/5f/cc/d077616a1427b0498929f19a2e885e86df213e5d3dba259db8557569b139/pytest_approvaltests-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5b4e98ef6b5ecbfe5ca06ff23f0b7aa7", "sha256": "2e3dabe69450dad5806b92c24d2502497941f28421dd538631212ca8c2e04bba" }, "downloads": -1, "filename": "pytest-approvaltests-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5b4e98ef6b5ecbfe5ca06ff23f0b7aa7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4281, "upload_time": "2019-06-27T14:09:35", "url": "https://files.pythonhosted.org/packages/4c/f5/02923971a8a930cbe15ee44b5a919d14d9193c63fbd41d54146949cc5ed8/pytest-approvaltests-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6abf63ef90ab520954dc149aacc4c765", "sha256": "c2143a33e1a76e3dc4a0878b5c7a89657204b6536d9e93e0b6c17f06bc335178" }, "downloads": -1, "filename": "pytest_approvaltests-0.1.1-py3.7.egg", "has_sig": false, "md5_digest": "6abf63ef90ab520954dc149aacc4c765", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4731, "upload_time": "2019-08-02T06:18:37", "url": "https://files.pythonhosted.org/packages/3d/79/d8a0517adaf24e10ad7b2515e6d63321d65065b8a29f5521dd7b136ea9e2/pytest_approvaltests-0.1.1-py3.7.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6abf63ef90ab520954dc149aacc4c765", "sha256": "c2143a33e1a76e3dc4a0878b5c7a89657204b6536d9e93e0b6c17f06bc335178" }, "downloads": -1, "filename": "pytest_approvaltests-0.1.1-py3.7.egg", "has_sig": false, "md5_digest": "6abf63ef90ab520954dc149aacc4c765", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4731, "upload_time": "2019-08-02T06:18:37", "url": "https://files.pythonhosted.org/packages/3d/79/d8a0517adaf24e10ad7b2515e6d63321d65065b8a29f5521dd7b136ea9e2/pytest_approvaltests-0.1.1-py3.7.egg" } ] }