1
0
forked from VimPlug/jedi

Get renames working for module imports

This commit is contained in:
Dave Halter
2020-02-11 01:34:57 +01:00
parent ab4f282b03
commit e43b0cec4a
4 changed files with 39 additions and 37 deletions

View File

@@ -32,7 +32,7 @@ class RefactoringCase(object):
return f_name.replace('.py', '')
def calculate_diff(self):
project = jedi.Project(os.path.join(test_dir, 'completion'))
project = jedi.Project(os.path.join(test_dir, 'refactor'))
script = jedi.Script(self._code, path=self._path, project=project)
refactor_func = getattr(script, self.refactor_type)
refactor_object = refactor_func(self._line_nr, self._index, *self._args)