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

Function test_pygments_syntax_theme_non_str

tests/test_syntax.py:160–164  ·  tests/test_syntax.py::test_pygments_syntax_theme_non_str
()

Source from the content-addressed store, hash-verified

158
159
160def test_pygments_syntax_theme_non_str() -> None:
161 from pygments.style import Style as PygmentsStyle
162
163 style = PygmentsSyntaxTheme(PygmentsStyle())
164 assert style.get_background_style().bgcolor == Color.parse(class="st">"class="cm">#ffffff")
165
166
167def test_pygments_syntax_theme() -> None:

Callers

nothing calls this directly

Calls 3

get_background_styleMethod · 0.95
PygmentsSyntaxThemeClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected