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

Method test_mix_terms

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

Source from the content-addressed store, hash-verified

1820 self.assertIn("some_four", matches)
1821
1822 def test_mix_terms(self):
1823 ip = get_ipython()
1824 from textwrap import dedent
1825
1826 ip.Completer.use_jedi = False
1827 ip.ex(
1828 dedent(
1829 """
1830 class Test:
1831 def meth(self, meth_arg1):
1832 print("meth")
1833
1834 def meth_1(self, meth1_arg1, meth1_arg2):
1835 print("meth1")
1836
1837 def meth_2(self, meth2_arg1, meth2_arg2):
1838 print("meth2")
1839 test = Test()
1840 """
1841 )
1842 )
1843 _, matches = ip.complete(None, "test.meth(")
1844 self.assertIn("meth_arg1=", matches)
1845 self.assertNotIn("meth2_arg1=", matches)
1846
1847 def test_percent_symbol_restrict_to_magic_completions(self):
1848 ip = get_ipython()

Callers

nothing calls this directly

Calls 4

get_ipythonFunction · 0.90
dedentFunction · 0.85
exMethod · 0.80
completeMethod · 0.45

Tested by

no test coverage detected