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

Function test_ansi_codes

tests/test_style.py:38–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_ansi_codes():
39 all_styles = Style(
40 color="red",
41 bgcolor="black",
42 bold=True,
43 dim=True,
44 italic=True,
45 underline=True,
46 blink=True,
47 blink2=True,
48 reverse=True,
49 conceal=True,
50 strike=True,
51 underline2=True,
52 frame=True,
53 encircle=True,
54 overline=True,
55 )
56 expected = "1;2;3;4;5;6;7;8;9;21;51;52;53;31;40"
57 assert all_styles._make_ansi_codes(ColorSystem.TRUECOLOR) == expected
58
59
60def test_repr():

Callers

nothing calls this directly

Calls 2

_make_ansi_codesMethod · 0.95
StyleClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…