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.

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.0.4.tar.gz (3.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pytest-icdiff-0.0.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for pytest-icdiff-0.0.4.tar.gz
Algorithm Hash digest
SHA256 da1ec7fa464159f204d8f71739400c6a4cd43418c32afedc93f5382b310f9582
MD5 facb37872048858d8cd2fed8ba88d1bd
BLAKE2b-256 07fb7e6e5d36b377cd98e11e000f3fc5f03c3cc8468fa79ace11d35f4cc8c009

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