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 3 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
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

This branch was successfully deployed

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