mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
change some definition usages to goto_definitions in tests and docs
This commit is contained in:
@@ -24,9 +24,9 @@ class TestBase(unittest.TestCase):
|
||||
pos = len(lines), len(lines[-1])
|
||||
return jedi.Script(src, pos[0], pos[1], path)
|
||||
|
||||
def definition(self, src, pos=None):
|
||||
def goto_definitions(self, src, pos=None):
|
||||
script = self.get_script(src, pos)
|
||||
return script.definition()
|
||||
return script.goto_definitions()
|
||||
|
||||
def completions(self, src, pos=None, path=None):
|
||||
script = self.get_script(src, pos, path)
|
||||
|
||||
Reference in New Issue
Block a user