mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
find_references -> get_references, see #1476
This commit is contained in:
@@ -68,7 +68,7 @@ def test_line_number_errors(Script):
|
||||
|
||||
# ok
|
||||
Script(s).find_signatures(1, 0)
|
||||
Script(s).find_references(1, len(s))
|
||||
Script(s).get_references(1, len(s))
|
||||
|
||||
|
||||
def _check_number(Script, source, result='float'):
|
||||
@@ -163,7 +163,7 @@ def test_goto_definition_not_multiple(Script):
|
||||
|
||||
|
||||
def test_reference_description(Script):
|
||||
descs = [u.description for u in Script("foo = ''; foo").find_references()]
|
||||
descs = [u.description for u in Script("foo = ''; foo").get_references()]
|
||||
assert set(descs) == {"foo = ''", 'foo'}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user