Skip to main content

use icdiff for better error messages in pytest assertions

Project description

PyPI version conda-forge version Python versions 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 == :

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-icdiff-0.5.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file pytest-icdiff-0.5.tar.gz.

File metadata

  • Download URL: pytest-icdiff-0.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0rc1

File hashes

Hashes for pytest-icdiff-0.5.tar.gz
Algorithm Hash digest
SHA256 3a14097f4385665cb04330e6ae09a3dd430375f717e94482af6944470ad5f100
MD5 c579cebe8142e64d5bfef27ee52eaba6
BLAKE2b-256 1b8b52cbf350699f5264eadd06355237648306487a9137874f00147647e4f87a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page