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

Function test_accept_character

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

Source from the content-addressed store, hash-verified

176 ],
177)
178def test_accept_character(text, suggestion, expected):
179 event = make_event(text, len(text), suggestion)
180 event.current_buffer.insert_text = Mock()
181 accept_character(event)
182 assert event.current_buffer.insert_text.called
183 assert event.current_buffer.insert_text.call_args[0] == (expected,)
184
185
186@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

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