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

Function test_clear

tests/test_console.py:338–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336
337
338def test_clear() -> None:
339 console = Console(file=io.StringIO(), force_terminal=True, _environ={})
340 console.clear()
341 console.clear(home=False)
342 assert console.file.getvalue() == "\033[2J\033[H" + "\033[2J"
343
344
345def test_clear_no_terminal() -> None:

Callers

nothing calls this directly

Calls 2

clearMethod · 0.95
ConsoleClass · 0.90

Tested by

no test coverage detected