A plugin providing an alternative, colourful diff output for failing assertions.
A pytest plugin which brings the coloured diff output from the Ward test framework to pytest.
Supports Python 3.6+.
You can install “pytest-clarity” via pip:
$ pip install pytest-clarity
Install the plugin as described above.
The plugin will only be activated when the
-vv option is supplied to
You can configure the width of the output with the
pytest -vv --diff-width=60
You can force pytest-clarity to show a symbolic diff with
pytest -vv --diff-symbols
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.