{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"Syrupy is a pytest plugin that enables snapshot testing by letting you assert that computed results remain unchanged across test runs, using simple equality comparisons like `assert actual == snapshot`.","skillfed_tags":["testing-utilities","regression-testing"],"use_cases":["Regression testing of complex data structures, API responses, or rendered output where exact values matter but are hard to predict.","Validating that refactoring or optimization changes don't alter computed results unexpectedly.","Testing serialization and deserialization of custom objects by comparing their snapshot representation.","Detecting unintended changes to generated code, configuration, or formatted output in CI/CD pipelines.","Documenting expected behavior by storing snapshots as living examples of what your code produces."],"what_it_does":"Syrupy is a pytest plugin that implements snapshot testing\u2014a pattern where test assertions compare computed output against stored reference snapshots to detect regressions. Instead of writing brittle assertions on exact values, you write `assert actual == snapshot`, and syrupy manages the stored snapshots for you. On first run, it fails and prompts you to generate snapshots; on subsequent runs, it compares against those stored files. If output changes, the test fails, alerting you to the difference. You can update snapshots with `pytest --snapshot-update` when changes are intentional.\n\nThe plugin is designed around three principles: extensibility (you can add custom serializers for unsupported types), idiomatic pytest style (snapshots work as natural assertions, not special methods), and soundness (tests fail if a snapshot is missing, not just on differences). It supports filtering object attributes via include/exclude functions, customizing serialization through `__repr__` overrides, and integrating with unittest TestCase subclasses through fixtures. Snapshots are stored in a `__snapshots__` directory alongside your tests and should be committed to version control.","worth_installing":"Yes. Syrupy is actively maintained, has no security vulnerabilities, installs with minimal friction, and solves a real testing problem\u2014regression detection on complex outputs. It's well-suited for projects that need to catch subtle changes in computed results. Install it if you're writing tests for data transformations, API responses, or any output where immutability matters but exact assertions are unwieldy."},"id":"syrupy","links":{"html":"https://skillfed.io/packages/syrupy","md":"https://skillfed.io/packages/syrupy.md","pypi":"https://pypi.org/project/syrupy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-11","license_spdx":"MIT","license_treatment":"permissive","name":"syrupy","python_support":"supports_current","summary":"Pytest Snapshot Test Utility"},"popularity":{"monthly_downloads":13351369,"position":1285,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"5.5.3"}
