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

Function test_accept

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

Source from the content-addressed store, hash-verified

82 ],
83)
84def test_accept(text, suggestion, expected):
85 event = make_event(text, len(text), suggestion)
86 buffer = event.current_buffer
87 buffer.insert_text = Mock()
88 accept(event)
89 assert buffer.insert_text.called
90 assert buffer.insert_text.call_args[0] == (expected,)
91
92
93@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

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