A pygments lexer for pytest output.
Project description
pygments-pytest
A pygments lexer for pytest output
See some demos! Or see it in action on pytest.org.
Installation
pip install pygments-pytest
Usage
This library provides a pygments lexer called pytest.
.. code-block:: pytest
$ pytest test.py
========================== test session starts ===========================
platform linux -- Python 3.6.6, pytest-4.0.1.dev43+g0d529847.d20181123, py-1.7.0, pluggy-0.8.0
rootdir: /home/asottile/workspace/pytest, inifile: tox.ini
collected 1 item
test.py . [100%]
======================== 1 passed in 0.01 seconds ========================
This library also provides a sphinx extension. It can be enabled by adding
'pygments_pytest' to the extensions setting in your conf.py.
The colors can be tweaked using the sphinx setting (in conf.py)
pygments_pytest_ansi_colors:
pygments_pytest_ansi_colors = {
'Cyan': '#06989a',
'Green': '#4e9a06',
'Red': '#c00',
'Yellow': '#c4A000',
}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygments_pytest-1.3.1.tar.gz.
File metadata
- Download URL: pygments_pytest-1.3.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
156fce0fd728992eb99d4715da7b665920065f6347eeae2500e73907712e846a
|
|
| MD5 |
e51a2e259bfd4eb4f93fc4f626e05e17
|
|
| BLAKE2b-256 |
c6d6821ec32103b0e8464f31da28fd6f27d589134727735b090c4b70567fa2c0
|
File details
Details for the file pygments_pytest-1.3.1-py2.py3-none-any.whl.
File metadata
- Download URL: pygments_pytest-1.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df784065c27a4bf7e00f757578048bcc5672c1697bb52f7b55486a839f78e0a3
|
|
| MD5 |
a76f3f81937f2215167278bf867a3102
|
|
| BLAKE2b-256 |
aa507c9fc384f41794e922c673d562b666c14792d3066cd9db52b676a23a9b1b
|