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

Function test_apply_style

tests/test_segment.py:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_apply_style():
24 segments = [Segment("foo"), Segment("bar", Style(bold=True))]
25 assert Segment.apply_style(segments, None) is segments
26 assert list(Segment.apply_style(segments, Style(italic=True))) == [
27 Segment("foo", Style(italic=True)),
28 Segment("bar", Style(italic=True, bold=True)),
29 ]
30
31
32def test_split_lines():

Callers

nothing calls this directly

Calls 3

SegmentClass · 0.90
StyleClass · 0.90
apply_styleMethod · 0.80

Tested by

no test coverage detected