Skip to content

v7.0.1

Choose a tag to compare

@github-actions github-actions released this 14 Nov 21:10
· 14 commits to main since this release
Immutable release. Only release title and notes can be modified.

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_extension no longer crashes the session-finish report, and an extensionless extension no longer claims sibling snapshots such as .json or .raw during directory-scoped discovery.

    (#1299, #1304, closes #1297) — thanks @anticipate218

  • Keep snapshots of ignored test files when no path argument is given — collecting from testpaths or the invocation directory no longer reports or deletes snapshots for modules kept out of collection with --ignore or pytest_ignore_collect. A module that was collected and then emptied is still cleaned up, including when its parent directory is a symlink.

    (#1303, #1305, closes #1302) — thanks @Culaii


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)