Syrupy: the popular pytest snapshot plugin keeps tests of big outputs readable

KhuyenTran16 · x · 2026-09-23

The problem

Plain pytest assertions are easy to read for small outputs, but when a function returns a large dictionary, tests degrade into long field-by-field checks that are messy and hard to maintain.

The fix

Syrupy is the most popular pytest snapshot plugin (887 stars, MIT licensed, zero dependencies): it moves expected output into a snapshot file, so tests still verify the full result while assertions stay one clean line. Over 43 community members have contributed.

Related event: Syrupy Snapshot Testing Cleans Up Verbose pytest Assertions(2 posts)→

Original post →

More from coding & agent

coding & agent channel →