Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_clear_no_terminal
Function
test_clear_no_terminal
tests/test_console.py:345–349 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
343
344
345
def
test_clear_no_terminal() -> None:
346
console = Console(file=io.StringIO())
347
console.clear()
348
console.clear(home=False)
349
assert console.file.getvalue() ==
""
350
351
352
def
test_get_style() -> None:
Callers
nothing calls this directly
Calls
2
clear
Method · 0.95
Console
Class · 0.90
Tested by
no test coverage detected