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
pygments_pytest-2.3.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for pygments_pytest-2.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c4f9ce83b895148fcfb586fb2c09a4e27447c12c2bc68c391295bf5b524aa0 |
|
MD5 | 358837c23c5cee7a1c6242984720a29d |
|
BLAKE2b-256 | daba3e4368ce3066c4eefccc2f6dcf58ce1df43fdb79c470a0c97fbd34c0cc5f |