Pytest snapshot testing utility that enables developers to write tests asserting immutability of computed results.
Overall
score
80%
{
"context": "Evaluates how the solution uses syrupy's pytest integration to control snapshot diff output for IDE workflows. Checks center on invoking the built-in PyCharm patch export path and toggling ANSI coloring through official flags or environment variables while keeping assertions on the snapshot fixture. Ensures behaviors are driven by syrupy options rather than custom diff handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "PyCharm patch flag",
"description": "Test run enabling IDE patch export uses syrupy's pytest option `--snapshot-patch-pycharm-diff` to trigger the plugin-managed patch generation instead of hand-rolled files.",
"max_score": 30
},
{
"name": "Fixture-driven patch",
"description": "Failing assertions rely on the `snapshot` fixture and syrupy's `_syrupy_apply_ide_patches` session fixture (auto-enabled by the patch flag) to emit the patch artifact, not custom diff writers.",
"max_score": 20
},
{
"name": "Color disabling",
"description": "Colorless output scenario explicitly turns off ANSI codes via syrupy's `--snapshot-no-colors` flag or supported env vars (`ANSI_COLORS_DISABLED` or `NO_COLOR`) and observes a plain diff in `pytest_assertrepr_compare` output.",
"max_score": 20
},
{
"name": "Colorful diff",
"description": "Colorized scenario leaves colors enabled (avoids `--snapshot-no-colors`/color-disabling env vars) so syrupy's assertion renderer includes ANSI styling for additions/removals in the diff.",
"max_score": 15
},
{
"name": "Snapshot assertions",
"description": "All comparisons use syrupy's `snapshot` assertion object for equality checks rather than manual file or string diff logic, keeping dependency usage explicit.",
"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