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

Function test_export_svg_specified_unique_id

tests/test_console.py:551–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

549
550
551def test_export_svg_specified_unique_id() -> None:
552 expected_svg = EXPECTED_SVG.replace("terminal-3526644552", "given-id")
553 console = Console(record=True, width=100)
554 console.print(
555 "[b red on blue reverse]foo[/] [blink][link=https://example.org]Click[/link]"
556 )
557 svg = console.export_svg(unique_id="given-id")
558 print(repr(svg))
559
560 assert svg == expected_svg
561
562
563def test_save_svg() -> None:

Callers

nothing calls this directly

Calls 5

printMethod · 0.95
export_svgMethod · 0.95
ConsoleClass · 0.90
replaceMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected