mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-15 20:26:04 +07:00
fixed tests since we don't propose to make static decorated method
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
__author__ = 'ktisha'
|
|
||||||
|
|
||||||
def foo(x):
|
|
||||||
return x
|
|
||||||
|
|
||||||
class A():
|
|
||||||
|
|
||||||
@accepts(int, int)
|
|
||||||
def my_<caret>method(self):
|
|
||||||
print "Smth"
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
__author__ = 'ktisha'
|
|
||||||
|
|
||||||
def foo(x):
|
|
||||||
return x
|
|
||||||
|
|
||||||
class A():
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
@accepts(int, int)
|
|
||||||
def my_<caret>method():
|
|
||||||
print "Smth"
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
__author__ = 'ktisha'
|
|
||||||
|
|
||||||
def foo(x):
|
|
||||||
return x
|
|
||||||
|
|
||||||
class A():
|
|
||||||
|
|
||||||
@my_deco
|
|
||||||
def my_<caret>method(self):
|
|
||||||
print "Smth"
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
__author__ = 'ktisha'
|
|
||||||
|
|
||||||
def foo(x):
|
|
||||||
return x
|
|
||||||
|
|
||||||
class A():
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
@my_deco
|
|
||||||
def my_method():
|
|
||||||
print "Smth"
|
|
||||||
@@ -36,14 +36,6 @@ public class PyMakeMethodStaticQuickFixTest extends PyQuickFixTestCase {
|
|||||||
doQuickFixTest(PyMethodMayBeStaticInspection.class, PyBundle.message("QFIX.NAME.make.static"));
|
doQuickFixTest(PyMethodMayBeStaticInspection.class, PyBundle.message("QFIX.NAME.make.static"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testFunctionWithDeco() {
|
|
||||||
doQuickFixTest(PyMethodMayBeStaticInspection.class, PyBundle.message("QFIX.NAME.make.static"));
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testDecoWithParams() {
|
|
||||||
doQuickFixTest(PyMethodMayBeStaticInspection.class, PyBundle.message("QFIX.NAME.make.static"));
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testNoSelf() {
|
public void testNoSelf() {
|
||||||
doQuickFixTest(PyMethodMayBeStaticInspection.class, PyBundle.message("QFIX.NAME.make.static"));
|
doQuickFixTest(PyMethodMayBeStaticInspection.class, PyBundle.message("QFIX.NAME.make.static"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user