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

Function test_text_with_style

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

Source from the content-addressed store, hash-verified

39
40
41def test_text_with_style(legacy_term_mock):
42 text = "Hello, world!"
43 style = Style.parse("black on red")
44 buffer = [Segment(text, style)]
45
46 legacy_windows_render(buffer, legacy_term_mock)
47
48 legacy_term_mock.write_styled.assert_called_once_with(text, style)
49
50
51def test_control_cursor_move_to(legacy_term_mock):

Callers

nothing calls this directly

Calls 3

SegmentClass · 0.90
legacy_windows_renderFunction · 0.90
parseMethod · 0.45

Tested by

no test coverage detected