Need help with pytest-icdiff?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

hjwp
159 Stars 11 Forks The Unlicense 58 Commits 5 Opened issues

Description

better error messages for assert equals in pytest

Services available

!
?

Need anything else?

Contributors list

# 35,020
Python
CSS
Shell
domain-...
41 commits
# 6,067
Python
Django
backpor...
sentry
6 commits
# 17,598
Python
pytest
unit-te...
Flask
1 commit
# 6,186
Qt
jython
charset
Vim
1 commit

=============

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 versions

.. image:: https://travis-ci.org/hjwp/pytest-icdiff.svg?branch=master :target: https://travis-ci.org/hjwp/pytest-icdiff :alt: See Build Status on Travis CI

Better 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:: example_output.png?raw=true :alt: example colourised diff

Issues 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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.