mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add tests for PY-17671, PY-17824
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class Spam:
|
||||
def eggs(self, a):
|
||||
print(a)
|
||||
|
||||
eggs.name = "monthy"
|
||||
@@ -0,0 +1,3 @@
|
||||
class TestFoo:
|
||||
def test_smt(self):
|
||||
pass
|
||||
+10
@@ -87,6 +87,16 @@ public class PyMethodMayBeStaticInspectionTest extends PyTestCase {
|
||||
doMultiFileTest("abc.py");
|
||||
}
|
||||
|
||||
//PY-17671
|
||||
public void testMethodWithAttributes() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
//PY-17824
|
||||
public void testTestClasses() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
myFixture.configureByFile(getTestName(true) + ".py");
|
||||
myFixture.enableInspections(PyMethodMayBeStaticInspection.class);
|
||||
|
||||
Reference in New Issue
Block a user