Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hjwp/pytest-icdiff
better error messages for assert equals in pytest
https://github.com/hjwp/pytest-icdiff
Last synced: 25 days ago
JSON representation
better error messages for assert equals in pytest
- Host: GitHub
- URL: https://github.com/hjwp/pytest-icdiff
- Owner: hjwp
- License: unlicense
- Created: 2018-08-01T03:01:19.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T17:05:06.000Z (2 months ago)
- Last Synced: 2024-10-06T01:46:06.286Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 721 KB
- Stars: 313
- Watchers: 5
- Forks: 19
- Open Issues: 10
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-starred-test - hjwp/pytest-icdiff - better error messages for assert equals in pytest (Python)
README
=============
pytest-icdiff
=============.. image:: https://img.shields.io/pypi/v/pytest-icdiff.svg
:target: https://pypi.org/project/pytest-icdiff
:alt: PyPI version.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-icdiff.svg
:target: https://anaconda.org/conda-forge/pytest-icdiff
:alt: conda-forge version.. image:: https://img.shields.io/pypi/pyversions/pytest-icdiff.svg
:target: https://pypi.org/project/pytest-icdiff
:alt: Python versionsBetter diffs in `pytest`_ assertion error messages using `ICDiff`_.
Usage
-----pip install pytest-icdiff
Once you've installed it, ``pytest`` will produce nice colourised diffs for any ``assert ==`` :
.. image:: https://raw.githubusercontent.com/hjwp/pytest-icdiff/main/example_output.png?raw=true
:alt: example colourised diffIssues and PRs welcome.
Thanks to the maintainers of `ICDiff`_ and also `pprintpp`_ !
License
-------Distributed under the terms of the `Unlicense`_ license, "pytest-icdiff" is free and open source software
This `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`Unlicense`: http://unlicense.org
.. _`icdiff`: https://www.jefftk.com/icdiff
.. _`pprintpp`: https://github.com/wolever/pprintpp