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

Function test_autosuggest_token

tests/test_shortcuts.py:161–166  ·  view source on GitHub ↗
(text, suggestion, expected)

Source from the content-addressed store, hash-verified

159 ],
160)
161def test_autosuggest_token(text, suggestion, expected):
162 event = make_event(text, len(text), suggestion)
163 event.current_buffer.insert_text = Mock()
164 accept_token(event)
165 assert event.current_buffer.insert_text.called
166 assert event.current_buffer.insert_text.call_args[0] == (expected,)
167
168
169@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

accept_tokenFunction · 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…