(self)
| 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( |
nothing calls this directly
no test coverage detected