mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Remove "unittest" package from mock SDK, include it in test data instead
This commit is contained in:
@@ -1 +0,0 @@
|
||||
from .case import TestCase
|
||||
@@ -1,2 +0,0 @@
|
||||
class TestCase(object):
|
||||
pass
|
||||
@@ -1 +0,0 @@
|
||||
from .case import TestCase
|
||||
@@ -1,2 +0,0 @@
|
||||
class TestCase(object):
|
||||
pass
|
||||
@@ -75,7 +75,7 @@ public class PyPep8NamingInspectionTest extends PyTestCase {
|
||||
}
|
||||
|
||||
public void testTest() {
|
||||
doTest();
|
||||
doMultiFileTest();
|
||||
}
|
||||
|
||||
public void testOverrideFromModule() {
|
||||
@@ -90,4 +90,12 @@ public class PyPep8NamingInspectionTest extends PyTestCase {
|
||||
myFixture.enableInspections(PyPep8NamingInspection.class);
|
||||
myFixture.checkHighlighting(false, false, true);
|
||||
}
|
||||
|
||||
private void doMultiFileTest() {
|
||||
myFixture.copyDirectoryToProject("inspections/PyPep8NamingInspection/" + getTestName(true), "");
|
||||
myFixture.configureByFile("a.py");
|
||||
myFixture.enableInspections(PyPep8NamingInspection.class);
|
||||
myFixture.checkHighlighting(false, false, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user