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

Function test_link_id

tests/test_style.py:118–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117
118def test_link_id():
119 assert Style().link_id == ""
120 assert Style.parse("").link_id == ""
121 assert Style.parse("red").link_id == ""
122 style = Style.parse("red link https://example.org")
123 assert isinstance(style.link_id, str)
124 assert len(style.link_id) > 1
125
126
127def test_get_html_style():

Callers

nothing calls this directly

Calls 2

StyleClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected