Skip to main content

build status Build Status pre-commit.ci status

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',
}

Release files for pygments-pytest 2.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygments-pytest 2.5.0
File Size Uploaded
pygments_pytest-2.5.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygments-pytest 2.5.0
File Interpreter ABI Platform
pygments_pytest-2.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.2 kB

Release files / pygments_pytest-2.5.0.tar.gz

Download URL pygments_pytest-2.5.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
564b1a9bb9d254b93586361cf26a58011d71c66f8af20c33eaf5c3505e35ef28
BLAKE2b-256 checksum
How to use checksums
5848a9ac927fa4373ce149fbb6309472bfd047e4bafc09185275dfb0ee63e166
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / pygments_pytest-2.5.0-py2.py3-none-any.whl

Download URL pygments_pytest-2.5.0-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6b4539166327bf169860ebf4818ba7f8d683d211be3462cb381ed5146721f110
BLAKE2b-256 checksum
How to use checksums
0122286c1676324b2a38376b6d5bb38870d943b418f98d12b15523b44d4bdcd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.5.0 This release

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page