PY-21204 Create a new class in host file instead of injected fragment

Additionally, I removed usages of deprecated API in CreateClassQuickFix
and utilize SmartPointer to hold the reference to PSI element.
This commit is contained in:
Mikhail Golubev
2016-11-25 17:45:24 +03:00
parent 190fe91332
commit 8c0fe707e5
4 changed files with 48 additions and 13 deletions
@@ -202,6 +202,11 @@ public class PyQuickFixTest extends PyTestCase {
doInspectionTest("AddClass.py", PyUnresolvedReferencesInspection.class, "Create class 'Xyzzy'", true, true);
}
// PY-21204
public void testAddClassFromTypeComment() {
doInspectionTest(PyUnresolvedReferencesInspection.class, "Create class 'MyClass'", true, true);
}
// PY-1602
public void testAddFunctionToModule() {
doInspectionTest(