Skip to content

docs(tests): give a snapshot update command that pytest takes #7225

Not planned

Description

@dan-petty

Problem or Motivation

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:

pytest: error: unrecognized arguments: --snapshot-file-lock

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.

Activity

  1. added
    type/docs
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
    • 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.
  3. added
    scope/tests
    priority/p2-medium
    on Nov 25, 2026
  4. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor

    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.

  5. removed
    status/new
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/testssource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions