MCPcopy
hub / github.com/igrek51/wat / test_list_deep_mro_classes

Function test_list_deep_mro_classes

tests/inspection/test_inspect.py:303–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301
302
303def test_list_deep_mro_classes():
304 class Grand(object):
305 pass
306
307 class Father(Grand):
308 pass
309
310 class Son(Father):
311 pass
312
313 output = inspect_format(Son(), short=True)
314 assert_multiline_match(output, r'''
315value: <test_inspect.test_list_deep_mro_classes.<locals>.Son object at .*>
316type: test_inspect.Son
317parents: test_inspect.Father, test_inspect.Grand
318''&#x27;)
319
320
321def test_pydantic_class():

Callers

nothing calls this directly

Calls 3

inspect_formatFunction · 0.90
assert_multiline_matchFunction · 0.90
SonClass · 0.85

Tested by

no test coverage detected