Skip to content

Renderer

Markdown renderer for pytest-agent-digest.

FUNCTION DESCRIPTION
render_report

Render a Markdown report from a populated collector.

Classes

Functions

render_report

render_report(collector: ReportCollector, verbose: int, tb_style: str) -> str

Render a Markdown report from a populated collector.

PARAMETER DESCRIPTION
collector

The populated ReportCollector instance.

TYPE: ReportCollector

verbose

If True, include a ## Passes section listing each passed test.

TYPE: int

tb_style

The pytest --tb style value. When "no", traceback code blocks are omitted from failure entries.

TYPE: str

RETURNS DESCRIPTION
str

A Markdown string suitable for Agent consumption. The document always

str

ends with a newline and contains no ANSI escape sequences.