MCPcopy Index your code
hub / github.com/ipython/ipython / test_dispatch

Function test_dispatch

tests/test_pretty.py:94–102  ·  view source on GitHub ↗

Test correct dispatching: The _repr_pretty_ method for MyDict must be found before the registered printer for dict.

()

Source from the content-addressed store, hash-verified

92
93
94def test_dispatch():
95 """
96 Test correct dispatching: The _repr_pretty_ method for MyDict
97 must be found before the registered printer for dict.
98 """
99 gotoutput = pretty.pretty(MyDict())
100 expectedoutput = "MyDict(...)"
101
102 assert gotoutput == expectedoutput
103
104
105def test_callability_checking():

Callers

nothing calls this directly

Calls 2

MyDictClass · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…