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

Function test_callability_checking

tests/test_pretty.py:105–113  ·  view source on GitHub ↗

Test that the _repr_pretty_ method is tested for callability and skipped if not.

()

Source from the content-addressed store, hash-verified

103
104
105def test_callability_checking():
106 """
107 Test that the _repr_pretty_ method is tested for callability and skipped if
108 not.
109 """
110 gotoutput = pretty.pretty(Dummy2())
111 expectedoutput = "Dummy1(...)"
112
113 assert gotoutput == expectedoutput
114
115
116@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

Dummy2Class · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…