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

Method test_completion_no_autoimport

tests/test_completer.py:1462–1470  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1460 self.assertIn(".pi", matches)
1461
1462 def test_completion_no_autoimport(self):
1463 ip = get_ipython()
1464 complete = ip.Completer.complete
1465 with (
1466 evaluation_policy("limited", allow_auto_import=False),
1467 jedi_status(False),
1468 ):
1469 _, matches = complete(line_buffer="math.")
1470 self.assertNotIn(".pi", matches)
1471
1472 def test_completion_allow_custom_getattr_per_module(self):
1473 factory_code = textwrap.dedent(

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
evaluation_policyFunction · 0.85
jedi_statusFunction · 0.85

Tested by

no test coverage detected