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

Function test_render

tests/test_style.py:156–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155
156def test_render():
157 assert Style(color="red").render("foo", color_system=None) == "foo"
158 assert (
159 Style(color="red", bgcolor="black", bold=True).render("foo")
160 == "\x1b[1;31;40mfoo\x1b[0m"
161 )
162 assert Style().render("foo") == "foo"
163
164
165def test_test():

Callers

nothing calls this directly

Calls 2

StyleClass · 0.90
renderMethod · 0.45

Tested by

no test coverage detected