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 details)

Uploaded Source

File details

Details for the file pytest-beeprint-0.1.2.tar.gz.

File metadata

  • Download URL: pytest-beeprint-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pytest-beeprint-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8419536e690c20b81cd85bd3df5eca4eca2a62ce5e5852f435e65e05c4a4e291
MD5 59d26a9dc2e63d0c9e23b692456a0f63
BLAKE2b-256 380f107a3caad0cdddbe8dc327efa3164d6d81aa2c1b814d596cb927bcfbb367

See more details on using hashes here.

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