Pytest snapshot testing utility that enables developers to write tests asserting immutability of computed results.
Overall
score
80%
{
"context": "Evaluates use of the Syrupy pytest plugin to manage unused snapshot artifacts, specifically exercising removal during update runs and warning/reporting modes. Checks focus on correct CLI options and fixture usage to surface or clean stale snapshots without manual file handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Snapshot fixture",
"description": "Active snapshots for current releases are created/asserted through the Syrupy `snapshot` fixture rather than custom file management.",
"max_score": 15
},
{
"name": "Strict unused failure",
"description": "Running pytest without update but with default `--snapshot-warn-unused=error` (or equivalent config) fails the suite because of the seeded unused snapshot, leaving artifacts untouched and listing the unused snapshot path.",
"max_score": 25
},
{
"name": "Cleanup on update",
"description": "Executing tests with `--snapshot-update` triggers Syrupy's unused snapshot cleanup, removing the unused artifact while refreshing active snapshots and reporting the deletion.",
"max_score": 25
},
{
"name": "Warn mode reporting",
"description": "A warn-only run using `--snapshot-warn-unused=warn` (or equivalent setting) completes successfully while emitting warnings that name the unused snapshot artifact and confirm it remains on disk.",
"max_score": 20
},
{
"name": "Detailed output",
"description": "Warn/fail output is augmented with `--snapshot-details` or plugin configuration to show the specific unused snapshot file(s) detected, not just counts.",
"max_score": 15
}
]
}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