{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"inline-snapshot is a pytest plugin that lets you write snapshot tests by embedding expected values directly in your test code, then automatically updates those values when you review and approve changes.","skillfed_tags":["pytest-plugin","approval-testing","snapshot-testing"],"use_cases":["Verify complex output (JSON, HTML, error messages) by embedding the expected result in your test and auto-updating it when the output legitimately changes.","Test function arguments and return values by using snapshot_arg() to capture and compare function parameters across test runs.","Maintain approval tests for command-line tools or subprocess output where you want to review and lock in expected behavior.","Compare structured data (nested dicts, lists) with fuzzy matching support via dirty-equals for flexible assertions on dynamic parts.","Store large or multiline snapshot data externally while keeping test logic readable and inline."],"what_it_does":"inline-snapshot is a pytest plugin that embeds snapshot values directly in your test source code, turning snapshot testing into a code-first workflow. Instead of storing expected values in separate files, you write `snapshot()` placeholders in assertions, then run pytest with `--inline-snapshot=review` to see what values the test produces and approve them inline. The plugin rewrites your test file with the actual values, keeping your assertions and test logic in one place.\n\nIt supports multiple comparison modes (equality, ordering, membership, indexing), can store large snapshots externally, integrates with Black formatting, and works with normal assertions like `assert 1 + 1 == 3` as well as snapshot-specific syntax. Runtime dependencies are minimal: asttokens, executing, pytest, rich, tomli, and typing-extensions. The package is actively maintained, supports Python 3.9 through 3.14, and has no known security vulnerabilities.","worth_installing":"Yes. inline-snapshot is actively maintained, has low install friction, zero known vulnerabilities, and solves a real problem for teams doing approval or golden-master testing. The inline-code-first approach is a genuine alternative to file-based snapshot tools. Install it if you want snapshot testing without managing separate snapshot files, or if you prefer reviewing and approving test changes as part of code review."},"id":"inline-snapshot","links":{"html":"https://skillfed.io/packages/inline-snapshot","md":"https://skillfed.io/packages/inline-snapshot.md","pypi":"https://pypi.org/project/inline-snapshot/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-11","license_spdx":null,"license_treatment":"permissive","name":"inline-snapshot","python_support":"supports_current","summary":"golden master/snapshot/approval testing library which puts the values right into your source code"},"popularity":{"monthly_downloads":2126963,"position":3271,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.35.4"}
