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

Function test_inspect_empty_dict

tests/test_inspect.py:127–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126@skip_pypy3
127def test_inspect_empty_dict():
128 expected = (
129 "╭──────────────── <class 'dict'> ────────────────╮\n"
130 "│ dict() -> new empty dictionary │\n"
131 "│ dict(mapping) -> new dictionary initialized │\n"
132 "│ from a mapping object's │\n"
133 "│ (key, value) pairs │\n"
134 "│ dict(iterable) -> new dictionary initialized │\n"
135 "│ as if via: │\n"
136 "│ d = {} │\n"
137 "│ for k, v in iterable: │\n"
138 "│ d[k] = v │\n"
139 "│ dict(**kwargs) -> new dictionary initialized │\n"
140 "│ with the name=value pairs │\n"
141 "│ in the keyword argument list. For │\n"
142 "│ example: dict(one=1, two=2) │\n"
143 "│ │\n"
144 )
145 assert render({}).startswith(expected)
146
147
148@skip_py314

Callers

nothing calls this directly

Calls 1

renderFunction · 0.70

Tested by

no test coverage detected