MCPcopy Create free account
hub / github.com/ipython/ipython / _

Method _

IPython/core/tests/test_completer.py:476–485  ·  view source on GitHub ↗
(line, cursor_pos, expect, message, completion)

Source from the content-addressed store, hash-verified

474 nt.assert_false(".real" in c, "Shouldn't have completed on a[0]: %s" % c)
475
476 def _(line, cursor_pos, expect, message, completion):
477 with greedy_completion(), provisionalcompleter():
478 ip.Completer.use_jedi = False
479 _, c = ip.complete(".", line=line, cursor_pos=cursor_pos)
480 nt.assert_in(expect, c, message % c)
481
482 ip.Completer.use_jedi = True
483 with provisionalcompleter():
484 completions = ip.Completer.completions(line, cursor_pos)
485 nt.assert_in(completion, completions)
486
487 with provisionalcompleter():
488 yield _, "a[0].", 5, "a[0].real", "Should have completed on a[0].: %s", Completion(

Callers

nothing calls this directly

Calls 4

provisionalcompleterFunction · 0.90
greedy_completionFunction · 0.85
completionsMethod · 0.80
completeMethod · 0.45

Tested by

no test coverage detected