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

Function test_get_number_styles

tests/test_syntax.py:202–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200
201
202def test_get_number_styles() -> None:
203 syntax = Syntax(CODE, "python", theme="monokai", line_numbers=True)
204 console = Console(color_system="windows")
205 assert syntax._get_number_styles(console=console) == (
206 Style.parse("on #272822"),
207 Style.parse("dim on #272822"),
208 Style.parse("not dim on #272822"),
209 )
210
211
212def test_get_style_for_token() -> None:

Callers

nothing calls this directly

Calls 4

_get_number_stylesMethod · 0.95
SyntaxClass · 0.90
ConsoleClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected