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
Release files for pytest-clarity 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-clarity-1.0.1.tar.gz | 4.9 kB | Details |
Release files / pytest-clarity-1.0.1.tar.gz
| Download URL | pytest-clarity-1.0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
505fe345fad4fe11c6a4187fe683f2c7c52c077caa1e135f3e483fe112db7772
|
|
BLAKE2b-256 checksum How to use checksums |
525ccafa97944de55738a6a2c5a7cee00d073cb80495032d2b112c4546525eca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|