mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-11 00:01:54 +08:00
test for multiple call_signatures
This commit is contained in:
@@ -112,3 +112,14 @@ class TestCallSignatures(TestCase):
|
|||||||
pass
|
pass
|
||||||
f( )""")
|
f( )""")
|
||||||
self._run(s, 'f', 0, line=3, column=3)
|
self._run(s, 'f', 0, line=3, column=3)
|
||||||
|
|
||||||
|
def test_multiple_signatures(self):
|
||||||
|
s = textwrap.dedent("""\
|
||||||
|
if x:
|
||||||
|
def f(a, b):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
def f(a, b):
|
||||||
|
pass
|
||||||
|
f(""")
|
||||||
|
assert len(Script(s).call_signatures()) == 2
|
||||||
|
|||||||
Reference in New Issue
Block a user