API unit test intended to test every api method
[tests.git] / qaapi / qa / QAAPI.py
index d632368..056d7a5 100644 (file)
@@ -97,7 +97,7 @@ class QAAPI:
 
            for attribute in dir(module):
                attr = getattr(module, attribute)
-               if callable(attr):
+               if callable(attr) and hasattr(attr, 'status'):
                    setattr(attr, 'mod_name', module_basename+"."+attribute)
                    callables.append(attr(self.config))
            return callables