(line, cursor_pos, expect, message, completion)
| 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( |
nothing calls this directly
no test coverage detected