mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 15:51:51 +08:00
Refactoring: call_of_name -> call_of_leaf.
This commit is contained in:
@@ -4,7 +4,7 @@ from jedi import names
|
||||
from jedi.evaluate import helpers
|
||||
|
||||
|
||||
def test_call_of_name_in_brackets():
|
||||
def test_call_of_leaf_in_brackets():
|
||||
s = dedent("""
|
||||
x = 1
|
||||
type(x)
|
||||
@@ -12,5 +12,5 @@ def test_call_of_name_in_brackets():
|
||||
last_x = names(s, references=True, definitions=False)[-1]
|
||||
name = last_x._name
|
||||
|
||||
call = helpers.call_of_name(name)
|
||||
call = helpers.call_of_leaf(name)
|
||||
assert call == name
|
||||
|
||||
Reference in New Issue
Block a user