MCPcopy Create free account
hub / github.com/ipython/ipython / test_mix_terms

Method test_mix_terms

IPython/core/tests/test_completer.py:1088–1111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1086 nt.assert_in("some_four", matches)
1087
1088 def test_mix_terms(self):
1089 ip = get_ipython()
1090 from textwrap import dedent
1091
1092 ip.Completer.use_jedi = False
1093 ip.ex(
1094 dedent(
1095 """
1096 class Test:
1097 def meth(self, meth_arg1):
1098 print("meth")
1099
1100 def meth_1(self, meth1_arg1, meth1_arg2):
1101 print("meth1")
1102
1103 def meth_2(self, meth2_arg1, meth2_arg2):
1104 print("meth2")
1105 test = Test()
1106 """
1107 )
1108 )
1109 _, matches = ip.complete(None, "test.meth(")
1110 nt.assert_in("meth_arg1=", matches)
1111 nt.assert_not_in("meth2_arg1=", matches)

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