mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Added test for PY-4200
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import baz
|
||||
@@ -0,0 +1,2 @@
|
||||
import baz
|
||||
from baz import f
|
||||
@@ -0,0 +1,2 @@
|
||||
def f():
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
import f<caret>oo
|
||||
@@ -0,0 +1,2 @@
|
||||
import foo
|
||||
from foo import f
|
||||
@@ -0,0 +1,2 @@
|
||||
def f():
|
||||
pass
|
||||
@@ -170,6 +170,11 @@ public class PyRenameTest extends PyTestCase {
|
||||
doTest("bar");
|
||||
}
|
||||
|
||||
// PY-4200
|
||||
public void testRenameUpdatesImportReferences() {
|
||||
doMultiFileTest("baz.py");
|
||||
}
|
||||
|
||||
private void doRenameConflictTest(String newName, String expectedConflict) {
|
||||
myFixture.configureByFile(RENAME_DATA_PATH + getTestName(true) + ".py");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user