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.4.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file pygments_pytest-2.4.0.tar.gz
.
File metadata
- Download URL: pygments_pytest-2.4.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b83f14b33709cb23c8298b8b2c2613dd554a916f8648d6b0e4c215cbcf4b93 |
|
MD5 | 110ecd459870cedda86192cd3d6d7c55 |
|
BLAKE2b-256 | ccc3e244e7160dbf769d8b842a9c6acfb2247402b1f815e4834d7f4bbbf164ee |
File details
Details for the file pygments_pytest-2.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pygments_pytest-2.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c16e40d0367332c4a8222ef30f4054e0908faac82b59aa51352665570c120d |
|
MD5 | 2fa1fcae1582f90ffbf4b32b33279e1f |
|
BLAKE2b-256 | e6d85830c8084842be477e5ac950480e74f85d1416fbc917562c79dd21aac255 |