Pytest snapshot testing utility that enables developers to write tests asserting immutability of computed results.
Overall
score
80%
Generate deterministic sprint summaries that highlight differences across sequential snapshots.
@generates
from typing import Iterable, Mapping
def format_sprint_summary(
sprint_name: str,
stories: Iterable[Mapping[str, str]],
) -> str:
"""
Build a deterministic multi-line summary grouped by story state.
States are 'in_progress', 'blocked', and 'done'. Each story mapping includes
'id' and 'title' string fields. Sections list stories sorted by integer id
ascending; empty sections render 'None'. Output starts with 'Sprint: <name>'
followed by section headers in the order: In Progress, Blocked, Done. Each
section header ends with ':', story lines use "- [<id>] <title>", and a
single blank line separates sections for readable snapshots.
"""Enables snapshot comparisons that reuse prior snapshots as diff baselines by index or custom name.
Install with Tessl CLI
npx tessl i tessl/pypi-syrupyevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10