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

Function test_plain_property_setter

tests/test_text.py:84–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def test_plain_property_setter():
85 text = Text("foo")
86 text.plain = "bar"
87 assert str(text) == "bar"
88 text = Text()
89 text.append("Hello, World", "bold")
90 text.plain = "Hello"
91 assert str(text) == "Hello"
92 assert text._spans == [Span(0, 5, "bold")]
93
94
95def test_from_markup():

Callers

nothing calls this directly

Calls 3

appendMethod · 0.95
TextClass · 0.90
SpanClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…