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

Function test_install

tests/test_pretty.py:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def test_install() -> None:
48 console = Console(file=io.StringIO())
49 dh = sys.displayhook
50 install(console)
51 sys.displayhook("foo")
52 assert console.file.getvalue() == "'foo'\n"
53 assert sys.displayhook is not dh
54
55
56def test_install_max_depth() -> None:

Callers

nothing calls this directly

Calls 2

ConsoleClass · 0.90
installFunction · 0.90

Tested by

no test coverage detected