Skip to main content

A plugin providing an alternative, colourful diff output for failing assertions.

Project description

PyPI version conda-forge version Python versions See Build Status on Travis CI

A pytest plugin which brings the coloured diff output from the Ward test framework to pytest.

Before

Example output without pytest-clarity

After

Example output without pytest-clarity

Requirements

Supports Python 3.6+.

Installation

You can install “pytest-clarity” via pip:

$ pip install pytest-clarity

Usage

Install the plugin as described above.

The plugin will only be activated when the -vv option is supplied to pytest.

You can configure the width of the output with the --diff-width option:

pytest -vv --diff-width=60

You can force pytest-clarity to show a symbolic diff with --diff-symbols:

pytest -vv --diff-symbols

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-clarity, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest-clarity-1.0.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page