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

Function test_stylize

tests/test_text.py:141–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140
141def test_stylize():
142 text = Text("Hello, World!")
143 text.stylize("bold", 7, 11)
144 assert text._spans == [Span(7, 11, "bold")]
145 text.stylize("bold", 20, 25)
146 assert text._spans == [Span(7, 11, "bold")]
147
148
149def test_stylize_before():

Callers

nothing calls this directly

Calls 3

stylizeMethod · 0.95
TextClass · 0.90
SpanClass · 0.90

Tested by

no test coverage detected