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

Function test_other_providers

tests/test_shortcuts.py:251–259  ·  view source on GitHub ↗

Ensure that swapping autosuggestions does not break with other providers

()

Source from the content-addressed store, hash-verified

249
250
251def test_other_providers():
252 """Ensure that swapping autosuggestions does not break with other providers"""
253 provider = AutoSuggestFromHistory()
254 ip = get_ipython()
255 ip.auto_suggest = provider
256 event = Mock()
257 event.current_buffer = Buffer()
258 assert swap_autosuggestion_up(event) is None
259 assert swap_autosuggestion_down(event) is None
260
261
262@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

swap_autosuggestion_upFunction · 0.90
swap_autosuggestion_downFunction · 0.90
get_ipythonFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…