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

Function test_autosuggest_token_empty

tests/test_shortcuts.py:222–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220
221
222def test_autosuggest_token_empty():
223 full = "def out(tag: str, n=50):"
224 event = make_event(full, len(full), "")
225 event.current_buffer.insert_text = Mock()
226
227 with patch(
228 "prompt_toolkit.key_binding.bindings.named_commands.forward_word"
229 ) as forward_word:
230 accept_token(event)
231 assert not event.current_buffer.insert_text.called
232 assert forward_word.called
233
234
235def test_reset_search_buffer():

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…