forked from VimPlug/jedi
find_signatures -> get_signatures, see #1476
This commit is contained in:
@@ -3,12 +3,12 @@ Test all things related to the ``jedi.cache`` module.
|
||||
"""
|
||||
|
||||
|
||||
def test_cache_find_signatures(Script):
|
||||
def test_cache_get_signatures(Script):
|
||||
"""
|
||||
See github issue #390.
|
||||
"""
|
||||
def check(column, call_name, path=None):
|
||||
assert Script(s, path=path).find_signatures(1, column)[0].name == call_name
|
||||
assert Script(s, path=path).get_signatures(1, column)[0].name == call_name
|
||||
|
||||
s = 'str(int())'
|
||||
|
||||
@@ -26,4 +26,4 @@ def test_cache_find_signatures(Script):
|
||||
|
||||
def test_cache_line_split_issues(Script):
|
||||
"""Should still work even if there's a newline."""
|
||||
assert Script('int(\n').find_signatures()[0].name == 'int'
|
||||
assert Script('int(\n').get_signatures()[0].name == 'int'
|
||||
|
||||
Reference in New Issue
Block a user