(reason, s, comp, start=None, end=None)
| 499 | ip = get_ipython() |
| 500 | |
| 501 | def _test_complete(reason, s, comp, start=None, end=None): |
| 502 | l = len(s) |
| 503 | start = start if start is not None else l |
| 504 | end = end if end is not None else l |
| 505 | with provisionalcompleter(): |
| 506 | ip.Completer.use_jedi = True |
| 507 | completions = set(ip.Completer.completions(s, l)) |
| 508 | ip.Completer.use_jedi = False |
| 509 | assert Completion(start, end, comp) in completions, reason |
| 510 | |
| 511 | def _test_not_complete(reason, s, comp): |
| 512 | l = len(s) |
nothing calls this directly
no test coverage detected