You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(tests): give a snapshot update command that pytest takes #7225
docs/TESTING.md (the snapshot rule) gives this command: uv run pytest <test-file> --snapshot-update --snapshot-file-lock, and says that the file lock is required. The locked syrupy 7.0.3 refuses it:
uv run pytest --help lists --snapshot-file-lock-timeout and no --snapshot-file-lock. Seen on 2026-11-25 in the worktree of #7217. The update worked with --snapshot-update -n 0.
Proposed Solution
Disposition: update the document.
Give a command that the locked plugin accepts, and say how the update stays safe under xdist (one process with -n 0, or the lock that the plugin now takes by itself). devops docs check resolves devops command lines only, so it did not find this.
Proof: the command of the document updates one snapshot in a scratch branch.
Existing Tool Considered
syrupy (the snapshot plugin in uv.lock). No new code.
Possible duplicate: docs(tests): the snapshot command names no syrupy option #5146, which may ask for the same change. The model names Update docs/TESTING.md to replace the broken --snapshot-file-lock flag with a command the pinned syrupy plugin accepts as the change that both ask for. Both items fix the same broken command in docs/TESTING.md by replacing --snapshot-file-lock with a flag the pinned syrupy accepts. A person closes one of the two if that is so.
Duplicate of #5146, which is open and asks for the same correction of docs/TESTING.md. I close this item as not planned and add the new evidence to #5146.
Activity
dan-petty commentedon Nov 25, 2026
Update docs/TESTING.md to replace the broken --snapshot-file-lock flag with a command the pinned syrupy plugin acceptsas the change that both ask for.Both items fix the same broken command in docs/TESTING.md by replacing --snapshot-file-lock with a flag the pinned syrupy accepts.A person closes one of the two if that is so.dan-petty commentedon Nov 25, 2026
Duplicate of #5146, which is open and asks for the same correction of
docs/TESTING.md. I close this item as not planned and add the new evidence to #5146.