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

Function test_pretty_namedtuple_max_depth

tests/test_pretty.py:261–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259
260
261def test_pretty_namedtuple_max_depth() -> None:
262 instance = {"unit": StockKeepingUnit("a", "b", 1.0, "c", ["d", "e"])}
263 result = pretty_repr(instance, max_depth=1)
264 assert result == "{'unit': StockKeepingUnit(...)}"
265
266
267def test_small_width() -> None:

Callers

nothing calls this directly

Calls 2

pretty_reprFunction · 0.90
StockKeepingUnitClass · 0.70

Tested by

no test coverage detected