Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
81
def
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
88
def
test_color_property():
Callers
nothing calls this directly
Calls
2
Style
Class · 0.90
parse
Method · 0.45
Tested by
no test coverage detected