PY-21644 Proper family names for "Install and import package" and "Create function" quickfixes

This commit is contained in:
Mikhail Golubev
2016-11-25 17:45:24 +03:00
parent 8c0fe707e5
commit b09b8a30fd
4 changed files with 30 additions and 5 deletions
@@ -317,14 +317,14 @@ public class PyQuickFixTest extends PyTestCase {
// PY-2092
public void testUnresolvedRefCreateFunction() {
doInspectionTest(PyUnresolvedReferencesInspection.class,
PyBundle.message("QFIX.unresolved.reference.create.function.$0", "ref"), true, true);
PyBundle.message("QFIX.NAME.unresolved.reference.create.function", "ref"), true, true);
}
public void testUnresolvedRefNoCreateFunction() {
myFixture.enableInspections(PyUnresolvedReferencesInspection.class);
myFixture.configureByFile("UnresolvedRefNoCreateFunction.py");
myFixture.checkHighlighting(true, false, false);
final IntentionAction intentionAction = myFixture.getAvailableIntention(PyBundle.message("QFIX.unresolved.reference.create.function.$0", "ref"));
final IntentionAction intentionAction = myFixture.getAvailableIntention(PyBundle.message("QFIX.NAME.unresolved.reference.create.function", "ref"));
assertNull(intentionAction);
}