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

Function test_decode_issue_2688

tests/test_ansi.py:69–72  ·  view source on GitHub ↗
(ansi_bytes, expected_text)

Source from the content-addressed store, hash-verified

67 ],
68)
69def test_decode_issue_2688(ansi_bytes, expected_text):
70 text = Text.from_ansi(ansi_bytes.decode())
71
72 assert str(text) == expected_text
73
74
75@pytest.mark.parametrize("code", [*"0123456789:;<=>?"])

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.80
from_ansiMethod · 0.45

Tested by

no test coverage detected