##// END OF EJS Templates
Add test for kwarg stripping
Matthias Bussonnier -
Show More
@@ -1027,3 +1027,23 b' def test_snake_case_completion():'
1027 _, matches = ip.complete("s_", "print(s_f")
1027 _, matches = ip.complete("s_", "print(s_f")
1028 nt.assert_in('some_three', matches)
1028 nt.assert_in('some_three', matches)
1029 nt.assert_in('some_four', matches)
1029 nt.assert_in('some_four', matches)
1030
1031 def test_mix_terms():
1032 ip = get_ipython()
1033 from textwrap import dedent
1034 ip.Completer.use_jedi = False
1035 ip.ex(dedent("""
1036 class Test:
1037 def meth(self, meth_arg1):
1038 print("meth")
1039
1040 def meth_1(self, meth1_arg1, meth1_arg2):
1041 print("meth1")
1042
1043 def meth_2(self, meth2_arg1, meth2_arg2):
1044 print("meth2")
1045 test = Test()
1046 """))
1047 _, matches = ip.complete(None, "test.meth(")
1048 nt.assert_in('meth_arg1=', matches)
1049 nt.assert_not_in('meth2_arg1=', matches)
General Comments 0
You need to be logged in to leave comments. Login now