mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user