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

Function test_inspect_text

tests/test_inspect.py:110–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109@skip_pypy3
110def test_inspect_text():
111 num_attributes = 34 if sys.version_info >= (3, 11) else 33
112 expected = (
113 "╭──────────────── <class 'str'> ─────────────────╮\n"
114 "│ str(object='') -> str │\n"
115 "│ str(bytes_or_buffer[, encoding[, errors]]) -> │\n"
116 "│ str │\n"
117 "│ │\n"
118 f"│ {num_attributes} attribute(s) not shown. Run │\n"
119 "│ inspect(inspect) for options. │\n"
120 "╰────────────────────────────────────────────────╯\n"
121 )
122 print(repr(expected))
123 assert render("Hello") == expected
124
125
126@skip_pypy3

Callers

nothing calls this directly

Calls 2

renderFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected