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

Method test_completion_autoimport

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

Source from the content-addressed store, hash-verified

1450 assert_completion(line_buffer="get()['abc")
1451
1452 def test_completion_autoimport(self):
1453 ip = get_ipython()
1454 complete = ip.Completer.complete
1455 with (
1456 evaluation_policy("limited", allow_auto_import=True),
1457 jedi_status(False),
1458 ):
1459 _, matches = complete(line_buffer="math.")
1460 self.assertIn(".pi", matches)
1461
1462 def test_completion_no_autoimport(self):
1463 ip = get_ipython()

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