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

Function test_pygments_syntax_theme

tests/test_syntax.py:167–169  ·  tests/test_syntax.py::test_pygments_syntax_theme
()

Source from the content-addressed store, hash-verified

165
166
167def test_pygments_syntax_theme() -> None:
168 style = PygmentsSyntaxTheme(class="st">"default")
169 assert style.get_style_for_token(class="st">"abc") == Style.parse(class="st">"none")
170
171
172def test_get_line_color_none() -> None:

Callers

nothing calls this directly

Calls 3

get_style_for_tokenMethod · 0.95
PygmentsSyntaxThemeClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected