Repository navigation
docs(testing): Document working and committed assertion frames - #206
Merged
Merged
Conversation
why: During ?2026 synchronized output, assertion helpers read the live working buffer while boxed snapshot serializers read term.committed. Document both capture points so callers know how to compare the same frame across both surfaces while preserving existing defaults. what: - Name Terminal.snapshot() and Terminal.committed capture points in format_screen_box, assert_screen, assert_screen_box, VtScreenView, vt_screen, and serialize_vt_snapshot docstrings - Add an executable ?2026 working-vs-committed frame doctest and table in docs/topics/testing.md and cross-link from docs/api/testing.md and docs/topics/snapshots.md - Add whole, split-control, and one-byte ?2026 tests across all testing helpers in tests/test_testing.py and add a CHANGES documentation note Fixes #200
35 of 38 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #200
Summary
libvt.testingdocstrings (format_screen_box,assert_screen,assert_screen_boxreadTerminal.snapshot();vt_screen,VtScreenView,serialize_vt_snapshotreadTerminal.committed) while preserving both existing defaults.Working and committed framessection with summary table and executable?2026doctest (explicit imports) indocs/topics/testing.md, cross-linked fromdocs/api/testing.mdanddocs/topics/snapshots.md.?2026tests intests/test_testing.pyand records the update inCHANGES.Verification
ty(3.12–3.15 +win323.12),pytest(1239 passed, 2 skippedincluding doctests), Sphinxdirhtml -W(0 warnings).adopt as is(Gates 1–4 PASS, rubric 9.0–9.5/10, mutation bite verified on both doctest and capture-point flips).