Skip to content

Select terminal goldens in Syrupy snapshot updates - #189

Open
tony wants to merge 3 commits into
masterfrom
fix/87-syrupy-fixture-registration
Open

tony wants to merge 3 commits into
masterfrom
fix/87-syrupy-fixture-registration

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Member

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 2 commits December 2, 2026 19:16
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
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
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 fcde7da to 3de1c6b Compare December 3, 2026 23:58

This branch was successfully deployed

1 active deployment
docs — 3de1c6b4 Deployed Dec 4, 2026 by tony via build (3.14) #307
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