{ "info": { "author": "Darren Burns", "author_email": "darrenb900@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "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", "Topic :: Software Development :: Testing" ], "description": "=================\npytest-clarity\n=================\n\n.. image:: https://img.shields.io/pypi/v/pytest-clarity.svg\n :target: https://pypi.org/project/pytest-clarity\n :alt: PyPI version\n \n.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-clarity.svg\n :target: https://anaconda.org/conda-forge/pytest-clarity\n :alt: conda-forge version \n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-clarity.svg\n :target: https://pypi.org/project/pytest-clarity\n :alt: Python versions\n\n.. image:: https://travis-ci.org/darrenburns/pytest-clarity.svg?branch=master\n :target: https://travis-ci.org/darrenburns/pytest-clarity\n :alt: See Build Status on Travis CI\n\nA plugin to improve the readability of pytest output.\n\nFeatures\n--------\n\n* Enables an easier to parse and more understandable diff for your failing tests.\n* Can display unified diffs or split diffs, and chooses them depending on the context.\n* Adds helpful hints to the output for failing tests to help you track down common issues.\n\nWith `pytest-clarity`:\n\n.. image:: https://raw.githubusercontent.com/darrenburns/pytest-clarity/master/pytest-clarity.png\n :alt: Example output with clarity\n\n\nThe same test, without `pytest-clarity`:\n\n.. image:: https://raw.githubusercontent.com/darrenburns/pytest-clarity/master/without-clarity.png\n :alt: Example output without clarity\n\nRequirements\n------------\n\nSupports Python 2.7 and 3.4+\n\n\nInstallation\n------------\n\nYou can install \"pytest-clarity\" via `pip`_ from `PyPI`_::\n\n $ pip install pytest-clarity\n\n\nUsage\n-----\n\nInstall the plugin as described above, and it will be automatically enabled.\n\nYou can choose which type of diff you want with :code:`--diff-type` (`auto` (default), `split` or `unified`):\n\n::\n\n pytest --diff-type=split\n\nYou can disable hints using the :code:`--no-hints` flag:\n\n::\n\n pytest --no-hints\n\nYou can configure the width of the output with the :code:`--diff-width` option:\n\n::\n\n pytest --diff-width=60\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-clarity\" 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\nThis `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.\n\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/darrenburns/pytest-clarity/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/darrenburns/pytest-clarity", "keywords": "", "license": "MIT", "maintainer": "Darren Burns", "maintainer_email": "darrenb900@gmail.com", "name": "pytest-clarity", "package_url": "https://pypi.org/project/pytest-clarity/", "platform": "", "project_url": "https://pypi.org/project/pytest-clarity/", "project_urls": { "Homepage": "https://github.com/darrenburns/pytest-clarity" }, "release_url": "https://pypi.org/project/pytest-clarity/0.2.0a1/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "A plugin providing an alternative, colourful diff output for failing assertions.", "version": "0.2.0a1" }, "last_serial": 5517527, "releases": { "0.1.0a1": [ { "comment_text": "", "digests": { "md5": "6cbecde52f5fd0eb796fa1733318bca0", "sha256": "f6499b9215253bb733e7bc68ab3068fef7b5e20f93bce26c7471907fa8f1f451" }, "downloads": -1, "filename": "pytest_clarity-0.1.0a1-py2-none-any.whl", "has_sig": false, "md5_digest": "6cbecde52f5fd0eb796fa1733318bca0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 7476, "upload_time": "2018-10-18T13:15:10", "url": "https://files.pythonhosted.org/packages/82/4d/82be695a69fe0f89dfee969eb304ddbe250efa934f62cba642b86df65cb1/pytest_clarity-0.1.0a1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c13ad46e4dc0946255425a619a9fb82", "sha256": "8d6a36310e1babd019feed33d047284d129f05104cd78eb6e0d22d841839ebfb" }, "downloads": -1, "filename": "pytest-clarity-0.1.0a1.tar.gz", "has_sig": false, "md5_digest": "3c13ad46e4dc0946255425a619a9fb82", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6318, "upload_time": "2018-10-18T13:15:11", "url": "https://files.pythonhosted.org/packages/d5/1f/cf5c230595bfdb72b120170e5c20daad880c499da2b8decdb10170a3f459/pytest-clarity-0.1.0a1.tar.gz" } ], "0.2.0a1": [ { "comment_text": "", "digests": { "md5": "15e8619144b66a5ea1bf6bbee8346f5b", "sha256": "3f40d5ae7cb21cc95e622fc4f50d9466f80ae0f91460225b8c95c07afbf93e20" }, "downloads": -1, "filename": "pytest-clarity-0.2.0a1.tar.gz", "has_sig": false, "md5_digest": "15e8619144b66a5ea1bf6bbee8346f5b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6498, "upload_time": "2019-07-11T12:56:33", "url": "https://files.pythonhosted.org/packages/25/52/a480a52f4cc0500dc32ce4b8b7d97e14f6d98691cb997ddcbe91dd9195de/pytest-clarity-0.2.0a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "15e8619144b66a5ea1bf6bbee8346f5b", "sha256": "3f40d5ae7cb21cc95e622fc4f50d9466f80ae0f91460225b8c95c07afbf93e20" }, "downloads": -1, "filename": "pytest-clarity-0.2.0a1.tar.gz", "has_sig": false, "md5_digest": "15e8619144b66a5ea1bf6bbee8346f5b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6498, "upload_time": "2019-07-11T12:56:33", "url": "https://files.pythonhosted.org/packages/25/52/a480a52f4cc0500dc32ce4b8b7d97e14f6d98691cb997ddcbe91dd9195de/pytest-clarity-0.2.0a1.tar.gz" } ] }