Skip to main content

use icdiff for better error messages in pytest assertions

Project description

Python versions

Better diffs in pytest assertion error messages using beeprint and ICDiff.

Usage

pip install pytest-beeprint

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 pytest-icdiff, ICDiff and also beeprint !

License

Distributed under the terms of the Unlicense license, “pytest-beeprint” is free and open source software

This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.

History

0.1.2 (2023-07-04)

  • Fix how to set cols size for tests

0.1.1 (2023-06-08)

  • Fix README

0.1.0 (2023-06-09)

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-beeprint-0.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Supported by

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