__logger = logging.getLogger(__name__)
def __init__(self, **kwargs):
- super(BehaveFramework, self).__init__(**kwargs)
+ super().__init__(**kwargs)
self.json_file = os.path.join(self.res_dir, 'output.json')
self.total_tests = 0
self.pass_tests = 0
__logger = logging.getLogger(__name__)
def __init__(self, **kwargs):
- super(BashFeature, self).__init__(**kwargs)
+ super().__init__(**kwargs)
self.result_file = "{}/{}.log".format(self.res_dir, self.case_name)
def execute(self, **kwargs):
self.is_skipped = True
def __init__(self, **kwargs):
- super(MTSLauncher, self).__init__(**kwargs)
+ super().__init__(**kwargs)
# Location of the HTML report generated by MTS
self.mts_stats_dir = os.path.join(self.res_dir, 'mts_stats_report')
# Location of the log files generated by MTS for each test.
self.__logger.info("MTS logs output dir: %s ", self.mts_logs_dir)
kwargs.pop("cmd", None)
- return super(MTSLauncher, self).execute(cmd=cmd, **kwargs)
+ return super().execute(cmd=cmd, **kwargs)
except KeyError:
self.__logger.error("Missing mandatory arg for MTS. kwargs: %s",
__logger = logging.getLogger(__name__)
def __init__(self, **kwargs):
- super(RobotFramework, self).__init__(**kwargs)
+ super().__init__(**kwargs)
self.xml_file = os.path.join(self.res_dir, 'output.xml')
def parse_results(self):
return msg.get_string()
except AssertionError:
self.__logger.error("We cannot print invalid objects")
- return super(TestCase, self).__str__()
+ return super().__str__()
def get_duration(self):
"""Return the duration of the test case.
__logger = logging.getLogger(__name__)
def __init__(self, **kwargs):
- super(Suite, self).__init__(**kwargs)
+ super().__init__(**kwargs)
self.suite = None
@classmethod
__logger = logging.getLogger(__name__)
def __init__(self, **kwargs):
- super(VnfOnBoarding, self).__init__(**kwargs)
+ super().__init__(**kwargs)
self.uuid = uuid.uuid4()
self.user_name = "{}-{}".format(self.case_name, self.uuid)
self.tenant_name = "{}-{}".format(self.case_name, self.uuid)