From a5b53122ad6c23b456ecc720d6e9f22e706e2286 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Wed, 30 Sep 2026 21:17:41 -0400 Subject: [PATCH] Two message-paths tests record a viewport before painting, as the frame does Unset, the viewport reads as one row, which is now a short frame that leaves the graph's caption out, and the caption is what these two check. Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/test_message_paths_screen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_message_paths_screen.py b/tests/test_message_paths_screen.py index 30ead1e..2e97670 100644 --- a/tests/test_message_paths_screen.py +++ b/tests/test_message_paths_screen.py @@ -323,6 +323,7 @@ def test_an_outgoing_message_ends_on_its_recipient_not_on_us() -> None: source="Homestead", destination="Bob", ) + screen.note_viewport(40) # the frame records this before every real paint body = _plain(screen.render_body(72)) assert "Hilltop-Repeater" in body assert body.count("Homestead") == 1, "our name belongs at one end of a send, not both" @@ -345,6 +346,7 @@ def test_a_received_message_still_ends_on_us() -> None: summary="heard once", source="Alice", ) + screen.note_viewport(40) # the frame records this before every real paint body = _plain(screen.render_body(72)) assert "Alice" in body and "Homestead" in body assert "origin → you" in body