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

Function test_add

tests/test_text.py:57–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56
57def test_add():
58 text = Text("foo") + Text("bar")
59 assert str(text) == "foobar"
60 assert Text("foo").__add__(1) == NotImplemented
61
62
63def test_eq():

Callers

nothing calls this directly

Calls 2

TextClass · 0.90
__add__Method · 0.45

Tested by

no test coverage detected