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

Function test_accept_word

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

Source from the content-addressed store, hash-verified

195 ],
196)
197def test_accept_word(text, suggestion, expected):
198 event = make_event(text, len(text), suggestion)
199 event.current_buffer.insert_text = Mock()
200 accept_word(event)
201 assert event.current_buffer.insert_text.called
202 assert event.current_buffer.insert_text.call_args[0] == (expected,)
203
204
205@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

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