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

Function test_append_loop_regression

tests/test_text.py:1086–1094  ·  view source on GitHub ↗

Regression text for https://github.com/Textualize/rich/issues/3479

()

Source from the content-addressed store, hash-verified

1084
1085
1086def test_append_loop_regression() -> None:
1087 """Regression text for https://github.com/Textualize/rich/issues/3479"""
1088 a = Text("one", "blue")
1089 a.append(a)
1090 assert a.plain == "oneone"
1091
1092 b = Text("two", "blue")
1093 b.append_text(b)
1094 assert b.plain == "twotwo"
1095
1096
1097def test_soft_wrap() -> None:

Callers

nothing calls this directly

Calls 3

appendMethod · 0.95
append_textMethod · 0.95
TextClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…