A practical snapshot testing plugin for pytest, providing a simple way to compare test results against stored snapshots. Current version is 0.4.1, with a release cadence of approximately monthly.
pip install pytest-instaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic snapshot test using the snapshot fixture. Run with 'pytest --insta' to record snapshots.
Re-run tests with --insta-update to regenerate snapshots in new format.
Use the built-in fixture 'snapshot_name' to specify custom snapshot names.
Sort data or use custom serializers. Consider using pytest.approx for floats.
Do not import; use the fixture in test function argument: def test_foo(snapshot):
Install with pip install pytest-insta and ensure no conftest disables the plugin.