pytest-icdiff 0.9


pip install pytest-icdiff

  Latest version

Released: Dec 05, 2023

Project Links

Meta
Author: Harry Percival
Maintainer: Harry Percival
Requires Python: >=3.7

Classifiers

Development Status
  • 4 - Beta

Framework
  • Pytest

Intended Audience
  • Developers

Topic
  • Software Development :: Testing

Programming Language
  • Python
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11

Operating System
  • OS Independent

License
  • Public Domain
PyPI version conda-forge version Python versions

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 == :

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.

History

0.3 (2020-01-28)

  • Disable colorization in sync with Pytest (PR #12).

  • Synchronize license in setup.py with LICENSE file (PR #11).

  • Show expression drill down small numbers (Issue #5).

  • Test with Python 3.8 (PR #15).

0.2 (2019-03-28)

  • Obey terminal width.

0.0.4 (2018-08-26)

0.0.3 (2018-08-10)

  • Add Conda Forge installation and badge (PR #2).

  • Fix PyPI License classifier (Issue #3).

  • Fix colorization when both sides contain differences (Issue #4).

0.0.2 (2018-08-08)

  • Fix Travis link in README.

0.0.1 (2018-08-08)

  • First release on PyPI.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
pytest
icdiff
pprintpp