MCPcopy
hub / github.com/Textualize/rich / test_text_only

Function test_text_only

tests/test_windows_renderer.py:23–28  ·  view source on GitHub ↗
(legacy_term_mock)

Source from the content-addressed store, hash-verified

21
22
23def test_text_only(legacy_term_mock):
24 text = "Hello, world!"
25 buffer = [Segment(text)]
26 legacy_windows_render(buffer, legacy_term_mock)
27
28 legacy_term_mock.write_text.assert_called_once_with(text)
29
30
31def test_text_multiple_segments(legacy_term_mock):

Callers

nothing calls this directly

Calls 2

SegmentClass · 0.90
legacy_windows_renderFunction · 0.90

Tested by

no test coverage detected