PY-21366 Consider import aliases when restoring imports for moved element

This commit is contained in:
Mikhail Golubev
2016-11-22 17:50:21 +03:00
parent 3d7db40560
commit d51fa3ee60
10 changed files with 38 additions and 5 deletions
@@ -356,6 +356,11 @@ public class PyMoveTest extends PyTestCase {
doMoveSymbolTest("use_foo", "c.py");
}
// PY-21366
public void testFromImportAliases() {
doMoveSymbolTest("func", "b.py");
}
private void doMoveFileTest(String fileName, String toDirName) {
Project project = myFixture.getProject();
PsiManager manager = PsiManager.getInstance(project);