Skip to main content
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.

Release files for pytest-icdiff 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-icdiff 0.9
File Size Uploaded
pytest-icdiff-0.9.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-icdiff 0.9
File Interpreter ABI Platform
pytest_icdiff-0.9-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / pytest-icdiff-0.9.tar.gz

Download URL pytest-icdiff-0.9.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
13aede616202e57fcc882568b64589002ef85438046f012ac30a8d959dac8b75
BLAKE2b-256 checksum
How to use checksums
5a0c66e1e2590e98f4428e374a3b6448dc086a908d15b1e24b914539d13b7ac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / pytest_icdiff-0.9-py3-none-any.whl

Download URL pytest_icdiff-0.9-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efee0da3bd1b24ef2d923751c5c547fbb8df0a46795553fba08ef57c3ca03d82
BLAKE2b-256 checksum
How to use checksums
e2e1cafe1edf7a30be6fa1bbbf43f7af12b34682eadcf19eb6e9f7352062c422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.9 This release

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

1 release file

0.4

1 release file

0.3

2 release files

0.2

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page