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

Function test_control_home

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

Source from the content-addressed store, hash-verified

67
68
69def test_control_home(legacy_term_mock):
70 buffer = [Segment("", None, [(ControlType.HOME,)])]
71
72 legacy_windows_render(buffer, legacy_term_mock)
73
74 legacy_term_mock.move_cursor_to.assert_called_once_with(WindowsCoordinates(0, 0))
75
76
77@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

SegmentClass · 0.90
legacy_windows_renderFunction · 0.90
WindowsCoordinatesClass · 0.90

Tested by

no test coverage detected