Skip to content

Select terminal goldens in Syrupy snapshot updates - #189

Merged
tony merged 3 commits into
masterfrom
fix/87-syrupy-fixture-registration
Dec 5, 2026
Merged

tony merged 3 commits into
masterfrom
fix/87-syrupy-fixture-registration

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #87
Closes #112

What changed, and why:

Tests using only vt_snapshot participate in filtered Syrupy snapshot updates. Projects can load the fixture by plugin module in conftest.py. Selection follows the effective fixture through aliases and overrides.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #189
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 02:05
@tony
tony force-pushed the fix/87-syrupy-fixture-registration branch from fcde7da to 3de1c6b Compare December 3, 2026 23:58
tony added 3 commits December 5, 2026 07:21
why: Module-based pytest loading cannot find the lazy configure hook.

what:
- Expose the configure hook through module introspection.
- Compare explicit module and entry-point fixture registration.

Fixes #112
why: A filtered snapshot update can skip terminal-only fixtures.

what:
- Mark tests using the effective terminal snapshot fixture.
- Cover handlers using aliases and fixture overrides.
- Verify that a filtered update replaces the stale golden.

Fixes #87
why: A marker-filtered Syrupy update can skip a test whose only snapshot
     fixture is vt_snapshot.

what:
- Document terminal golden selection and explicit plugin loading.
@tony
tony force-pushed the fix/87-syrupy-fixture-registration branch from 3de1c6b to cd5a62e Compare December 5, 2026 13:22
@tony
tony changed the base branch from master to fix/128-cli-input-errors December 5, 2026 13:22
@tony
tony changed the base branch from fix/128-cli-input-errors to master December 5, 2026 13:28
@tony
tony merged commit e906780 into master Dec 5, 2026
9 checks passed
tony added a commit to vcs-python/vcspull that referenced this pull request Dec 5, 2026
why: With libvt 0.0.1a6 shipping marker-filtered vt_snapshot discovery,
     contributors can check and refresh ordinary and terminal CLI goldens
     through the Syrupy marker.

what:
- Document checking and refreshing CLI goldens with the Syrupy marker in
  .github/CONTRIBUTING.md

Refs libvt/libvt-python#189
tony added a commit to vcs-python/vcspull that referenced this pull request Dec 5, 2026
why: With libvt 0.0.1a6 shipping marker-filtered vt_snapshot discovery,
     contributors can check and refresh ordinary and terminal CLI goldens
     through the Syrupy marker.

what:
- Document checking and refreshing CLI goldens with the Syrupy marker in
  .github/CONTRIBUTING.md

Refs libvt/libvt-python#189
tony added a commit to vcs-python/vcspull that referenced this pull request Dec 5, 2026
why: With libvt 0.0.1a6 shipping marker-filtered vt_snapshot discovery,
     contributors can check and refresh ordinary and terminal CLI goldens
     through the Syrupy marker.

what:
- Document checking and refreshing CLI goldens with the Syrupy marker in
  .github/CONTRIBUTING.md

Refs libvt/libvt-python#189
@tony
tony deleted the fix/87-syrupy-fixture-registration branch December 5, 2026 20:42
tony added a commit to vcs-python/vcspull that referenced this pull request Dec 6, 2026
why: With libvt 0.0.1a6 shipping marker-filtered vt_snapshot discovery,
     contributors can check and refresh ordinary and terminal CLI goldens
     through the Syrupy marker.

what:
- Document checking and refreshing CLI goldens with the Syrupy marker in
  .github/CONTRIBUTING.md

Refs libvt/libvt-python#189
tony added a commit to vcs-python/vcspull that referenced this pull request Dec 6, 2026
why: With libvt 0.0.1a6 shipping marker-filtered vt_snapshot discovery,
     contributors can check and refresh ordinary and terminal CLI goldens
     through the Syrupy marker.

what:
- Document checking and refreshing CLI goldens with the Syrupy marker in
  .github/CONTRIBUTING.md

Refs libvt/libvt-python#189

This branch was successfully deployed

1 active deployment
docs — cd5a62eb Deployed Dec 5, 2026 by tony via build (3.14) #388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Register vt_snapshot under explicit pytest module loading Make the snapshot marker select tests using only vt_snapshot

1 participant