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

Function test_bool

tests/test_style.py:81–85  ·  tests/test_style.py::test_bool
()

Source from the content-addressed store, hash-verified

79
80
81def test_bool():
82 assert bool(Style()) is False
83 assert bool(Style(bold=True)) is True
84 assert bool(Style(color=class="st">"red")) is True
85 assert bool(Style.parse(class="st">"")) is False
86
87
88def test_color_property():

Callers

nothing calls this directly

Calls 2

StyleClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected