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

Function test_append_text

tests/test_text.py:364–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362
363
364def test_append_text():
365 text = Text("foo")
366 text.append_text(Text("bar", style="bold"))
367 assert str(text) == "foobar"
368 assert text._spans == [Span(3, 6, "bold")]
369
370
371def test_end():

Callers

nothing calls this directly

Calls 3

append_textMethod · 0.95
TextClass · 0.90
SpanClass · 0.90

Tested by

no test coverage detected