A plugin providing an alternative, colourful diff output for failing assertions.
Project description
A pytest plugin which brings the coloured diff output from the Ward test framework to pytest.
Before
After
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-clarity-1.0.1.tar.gz
(4.9 kB
view details)
File details
Details for the file pytest-clarity-1.0.1.tar.gz
.
File metadata
- Download URL: pytest-clarity-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 505fe345fad4fe11c6a4187fe683f2c7c52c077caa1e135f3e483fe112db7772 |
|
MD5 | 66f07f48e101598f6bffdeb79fdb9304 |
|
BLAKE2b-256 | 525ccafa97944de55738a6a2c5a7cee00d073cb80495032d2b112c4546525eca |