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

Method test_limit_to__all__False_ok

tests/test_completer.py:765–778  ·  view source on GitHub ↗

Limit to all is deprecated, once we remove it this test can go away.

(self)

Source from the content-addressed store, hash-verified

763 del ip._x
764
765 def test_limit_to__all__False_ok(self):
766 """
767 Limit to all is deprecated, once we remove it this test can go away.
768 """
769 ip = get_ipython()
770 c = ip.Completer
771 c.use_jedi = False
772 ip.ex("class D: x=24")
773 ip.ex("d=D()")
774 cfg = Config()
775 cfg.IPCompleter.limit_to__all__ = False
776 c.update_config(cfg)
777 s, matches = c.complete("d.")
778 self.assertIn(".x", matches)
779
780 def test_get__all__entries_ok(self):
781 class A:

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
exMethod · 0.80
completeMethod · 0.45

Tested by

no test coverage detected