Ejemplo n.º 1
0
 def test_summary_exists(self):
     for subclass in Action.__subclasses__():  # pylint: disable=no-member
         if not hasattr(subclass, 'name'):
             continue
         if not hasattr(subclass,
                        'summary') and subclass.name not in self.allowed:
             self.fail(subclass)
Ejemplo n.º 2
0
def test_summary_exists():
    for subclass in Action.__subclasses__():
        # TODO: is this normal?
        if not hasattr(subclass, "name"):
            continue
        if subclass.name not in ALLOWED:
            assert hasattr(subclass, "summary")
Ejemplo n.º 3
0
 def test_description_exists(self):
     for subclass in Action.__subclasses__():  # pylint: disable=no-member
         if not hasattr(subclass, "name"):
             continue
         if (not hasattr(subclass, "description")
                 and subclass.name not in self.allowed):
             self.fail(subclass)
Ejemplo n.º 4
0
 def test_summary_exists(self):
     for subclass in Action.__subclasses__():
         if not hasattr(subclass, "name"):
             continue
         if not hasattr(subclass,
                        "summary") and subclass.name not in self.allowed:
             self.fail(subclass)
Ejemplo n.º 5
0
def test_description_exists():
    for subclass in Action.__subclasses__():
        if not hasattr(subclass, "name"):
            continue
        if subclass.name not in ALLOWED:
            assert hasattr(subclass, "description")
Ejemplo n.º 6
0
 def test_description_exists(self):
     for subclass in Action.__subclasses__():  # pylint: disable=no-member
         if not hasattr(subclass, 'name'):
             continue
         if not hasattr(subclass, 'description') and subclass.name not in self.allowed:
             self.fail(subclass)