Pytest snapshot testing utility that enables developers to write tests asserting immutability of computed results.
Overall
score
80%
{
"context": "Evaluates whether snapshot tests use Syrupy's built-in extensions to capture structured data, JSON payloads, raw bytes, and image outputs exactly as specified. Scoring focuses solely on picking the correct extension classes and invoking them properly for each artifact type, not on general code structure. All checks assume pytest execution with Syrupy's snapshot fixture available.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Amber default",
"description": "Order summary snapshot uses the default AmberSnapshotExtension (implicit snapshot fixture) without overriding the extension, producing multi-snapshot .ambr output for the structured dict.",
"max_score": 20
},
{
"name": "JSON extension",
"description": "Inventory payload assertion selects syrupy.extensions.json.JSONSnapshotExtension via snapshot.use_extension or default-extension CLI flag so the snapshot is written as JSON with stable ordering.",
"max_score": 20
},
{
"name": "Raw bytes",
"description": "Raw telemetry assertion uses syrupy.extensions.single_file.SingleFileSnapshotExtension to store the bytes verbatim as a single-file snapshot rather than re-encoding or serializing them manually.",
"max_score": 20
},
{
"name": "PNG snapshot",
"description": "PNG badge bytes assertion invokes syrupy.extensions.image.PNGImageSnapshotExtension through snapshot.use_extension so the snapshot is stored as a .png file and compared byte-for-byte on reruns.",
"max_score": 20
},
{
"name": "SVG snapshot",
"description": "SVG badge markup assertion uses syrupy.extensions.image.SVGImageSnapshotExtension via snapshot.use_extension to produce a .svg snapshot and validate identical markup across runs.",
"max_score": 20
}
]
}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