Skip to content

docs(testing): Document working and committed assertion frames - #206

Merged
tony merged 1 commit into
masterfrom
docs/200-assertion-frames
Dec 5, 2026
Merged

tony merged 1 commit into
masterfrom
docs/200-assertion-frames

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #200

Summary

  • Names the exact capture point across all sibling libvt.testing docstrings (format_screen_box, assert_screen, assert_screen_box read Terminal.snapshot(); vt_screen, VtScreenView, serialize_vt_snapshot read Terminal.committed) while preserving both existing defaults.
  • Adds a Working and committed frames section with summary table and executable ?2026 doctest (explicit imports) in docs/topics/testing.md, cross-linked from docs/api/testing.md and docs/topics/snapshots.md.
  • Adds parametrized whole / split-control / one-byte ?2026 tests in tests/test_testing.py and records the update in CHANGES.

Verification

  • Ruff, ty (3.12–3.15 + win32 3.12), pytest (1239 passed, 2 skipped including doctests), Sphinx dirhtml -W (0 warnings).
  • Independent staff review verdict: adopt as is (Gates 1–4 PASS, rubric 9.0–9.5/10, mutation bite verified on both doctest and capture-point flips).

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
@tony
tony merged commit 3afc591 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the docs/200-assertion-frames branch December 5, 2026 16:37
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks

This branch was successfully deployed

1 active deployment
docs — da0fe65f Deployed Dec 5, 2026 by tony via build (3.14) #502
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.

Document working and committed frames in screen assertions

1 participant