You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@parameterized_class("X", [1,2])
class BaseClass(unittest.TestCase):
#code
class SubClass(BaseClass):
def test_func(self):
print(self.X)
=> Class SubClass has no Attribute X
Ich verwende nose2.
The text was updated successfully, but these errors were encountered:
parameterized_class generates lots of new classes based on parameters and remove all test methods of BaseClass. The name of new classes may be BaseClass_0X1,BaseClass_1X2 or whatever.
You should not write a new class inherited from BaseClass.
Ich verwende nose2.
The text was updated successfully, but these errors were encountered: