forked from VimPlug/jedi
Move some code around
This commit is contained in:
@@ -401,8 +401,7 @@ code3 = 'def h(u, /, v, *args, x=1, y): pass'
|
||||
code4 = 'def i(u, /, v, *args, x=1, y, **kwargs): pass'
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'code, call, expected_index', [
|
||||
_calls = [
|
||||
# No *args, **kwargs
|
||||
(code1, 'f(', 0),
|
||||
(code1, 'f(a', 0),
|
||||
@@ -480,8 +479,10 @@ code4 = 'def i(u, /, v, *args, x=1, y, **kwargs): pass'
|
||||
(code4, 'i(1, [a,b', 1),
|
||||
(code4, 'i(1, [a,b=,', 2),
|
||||
(code4, 'i(1, [a!b,', 2),
|
||||
]
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize('code, call, expected_index', _calls)
|
||||
def test_signature_index(skip_pre_python38, Script, code, call, expected_index):
|
||||
sig, = Script(code + '\n' + call).call_signatures()
|
||||
index = sig.index
|
||||
|
||||
Reference in New Issue
Block a user