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

Function test_export_text

tests/test_console.py:511–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

509
510
511def test_export_text() -> None:
512 console = Console(record=True, width=100)
513 console.print("[b]foo")
514 text = console.export_text()
515 expected = "foo\n"
516 assert text == expected
517
518
519def test_export_html() -> None:

Callers

nothing calls this directly

Calls 3

printMethod · 0.95
export_textMethod · 0.95
ConsoleClass · 0.90

Tested by

no test coverage detected