Repository navigation
v7.0.1
Syrupy 7.0.1
(2026-11-14)
Syrupy 7.0.1 fixes single-file snapshot filenames and stops unused-snapshot cleanup from deleting snapshots of ignored tests when pytest is invoked without a path argument.
Full Changelog: v7.0.0...v7.0.1
Bug Fixes
-
Reserve the extension separator in single-file snapshot filenames — a long ASCII test name no longer produces a 256-character filename. Truncation now reserves the dot as well as the extension, and a truncated filename stays tied to its test so a skipped test is not treated as unused.
(#1298, #1301, closes #1296) — thanks @anticipate218
-
Read extensionless single-file snapshots — an empty
file_extensionno longer crashes the session-finish report, and an extensionless extension no longer claims sibling snapshots such as.jsonor.rawduring directory-scoped discovery.(#1299, #1304, closes #1297) — thanks @anticipate218
-
Keep snapshots of ignored test files when no path argument is given — collecting from
testpathsor the invocation directory no longer reports or deletes snapshots for modules kept out of collection with--ignoreorpytest_ignore_collect. A module that was collected and then emptied is still cleaned up, including when its parent directory is a symlink.
Thank you to the contributors
Thank you to everyone who contributed to this release:
- @anticipate218 — single-file snapshot filename length and extensionless reads (first contribution)
- @Culaii — keep snapshots of ignored test files when no path argument is given (first contribution)