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

Function test_control

tests/test_console.py:376–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374
375
376def test_control() -> None:
377 console = Console(file=io.StringIO(), force_terminal=True, _environ={})
378 console.control(Control.clear())
379 console.print("BAR")
380 assert console.file.getvalue() == "\x1b[2JBAR\n"
381
382
383def test_capture() -> None:

Callers

nothing calls this directly

Calls 4

controlMethod · 0.95
printMethod · 0.95
ConsoleClass · 0.90
clearMethod · 0.45

Tested by

no test coverage detected