Get renames working for module imports

This commit is contained in:
Dave Halter committed 2020-02-11 01:35:07 +01:00
1 parent ab4f282b03
commit e43b0cec4a
4 files changed
+39 -37

No files matched your search

+1 -1
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)