mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Make sure goto_assignments is no longer used on Definition
This commit is contained in:
@@ -216,7 +216,7 @@ def test_goto_assignments_follow_imports(Script):
|
||||
definition, = script.goto_assignments(follow_imports=True)
|
||||
assert (definition.line, definition.column) == start_pos
|
||||
assert definition.name == 'p'
|
||||
result, = definition.goto_assignments()
|
||||
result, = definition.goto()
|
||||
assert result.name == 'p'
|
||||
result, = definition.infer()
|
||||
assert result.name == 'int'
|
||||
|
||||
Reference in New Issue
Block a user