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

Function test_segments_renderable

tests/test_segment.py:143–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142
143def test_segments_renderable():
144 segments = Segments([Segment("foo")])
145 assert list(segments.__rich_console__(None, None)) == [Segment("foo")]
146
147 segments = Segments([Segment("foo")], new_lines=True)
148 assert list(segments.__rich_console__(None, None)) == [
149 Segment("foo"),
150 Segment.line(),
151 ]
152
153
154def test_divide():

Callers

nothing calls this directly

Calls 4

__rich_console__Method · 0.95
SegmentsClass · 0.90
SegmentClass · 0.90
lineMethod · 0.45

Tested by

no test coverage detected