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

Function test_render_escape

tests/test_markup.py:59–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58
59def test_render_escape():
60 console = Console(width=80, color_system=None)
61 console.begin_capture()
62 console.print(
63 escape(r"[red]"), escape(r"\[red]"), escape(r"\\[red]"), escape(r"\\\[red]")
64 )
65 result = console.end_capture()
66 expected = r"[red] \[red] \\[red] \\\[red]" + "\n"
67 assert result == expected
68
69
70def test_parse():

Callers

nothing calls this directly

Calls 5

begin_captureMethod · 0.95
printMethod · 0.95
end_captureMethod · 0.95
ConsoleClass · 0.90
escapeFunction · 0.90

Tested by

no test coverage detected