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

Function test_discard

tests/test_shortcuts.py:100–106  ·  view source on GitHub ↗
(text, suggestion)

Source from the content-addressed store, hash-verified

98 ],
99)
100def test_discard(text, suggestion):
101 event = make_event(text, len(text), suggestion)
102 buffer = event.current_buffer
103 buffer.insert_text = Mock()
104 discard(event)
105 assert not buffer.insert_text.called
106 assert buffer.suggestion is None
107
108
109@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

discardFunction · 0.90
make_eventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…