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

Function test_ansi_theme

tests/test_syntax.py:305–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303
304
305def test_ansi_theme() -> None:
306 style = Style(color="red")
307 theme = ANSISyntaxTheme({("foo", "bar"): style})
308 assert theme.get_style_for_token(("foo", "bar", "baz")) == style
309 assert theme.get_background_style() == Style()
310
311
312skip_windows_permission_error = pytest.mark.skipif(

Callers

nothing calls this directly

Calls 4

get_style_for_tokenMethod · 0.95
get_background_styleMethod · 0.95
StyleClass · 0.90
ANSISyntaxThemeClass · 0.90

Tested by

no test coverage detected