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

Function test_install_max_depth

tests/test_pretty.py:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55
56def test_install_max_depth() -> None:
57 console = Console(file=io.StringIO())
58 dh = sys.displayhook
59 install(console, max_depth=1)
60 sys.displayhook({"foo": {"bar": True}})
61 assert console.file.getvalue() == "{'foo': {...}}\n"
62 assert sys.displayhook is not dh
63
64
65def test_ipy_display_hook__repr_html() -> None:

Callers

nothing calls this directly

Calls 2

ConsoleClass · 0.90
installFunction · 0.90

Tested by

no test coverage detected