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

Uploaded Source

File details

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

File metadata

  • Download URL: pytest-beeprint-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ed0a61f3f75db36f9c2c1d8e9d6a1d76be91239fa61f466e5b9346f54684a4ea
MD5 04226affc0e802bbe53780472662f83d
BLAKE2b-256 a9aa0292d6680e38f45feb6ffeb4b0aac5eabc664ed30820df261a11b86e73a7

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