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

Function test_get_html_style

tests/test_style.py:127–141  ·  tests/test_style.py::test_get_html_style
()

Source from the content-addressed store, hash-verified

125
126
127def test_get_html_style():
128 expected = class="st">"color: class="cm">#7f7fbf; text-decoration-color: #7f7fbf; background-color: #800000; font-weight: bold; font-style: italic; text-decoration: underline; text-decoration: line-through; text-decoration: overline"
129 html_style = Style(
130 reverse=True,
131 dim=True,
132 color=class="st">"red",
133 bgcolor=class="st">"blue",
134 bold=True,
135 italic=True,
136 underline=True,
137 strike=True,
138 overline=True,
139 ).get_html_style()
140 print(repr(html_style))
141 assert html_style == expected
142
143
144def test_chain():

Callers

nothing calls this directly

Calls 3

StyleClass · 0.90
get_html_styleMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected