diff options
Diffstat (limited to 'xtesting/core')
-rw-r--r-- | xtesting/core/behaveframework.py | 2 | ||||
-rw-r--r-- | xtesting/core/feature.py | 2 | ||||
-rw-r--r-- | xtesting/core/mts.py | 4 | ||||
-rw-r--r-- | xtesting/core/robotframework.py | 2 | ||||
-rw-r--r-- | xtesting/core/testcase.py | 2 | ||||
-rw-r--r-- | xtesting/core/unit.py | 2 | ||||
-rw-r--r-- | xtesting/core/vnf.py | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/xtesting/core/behaveframework.py b/xtesting/core/behaveframework.py index ee6e8603..3dc60384 100644 --- a/xtesting/core/behaveframework.py +++ b/xtesting/core/behaveframework.py @@ -31,7 +31,7 @@ class BehaveFramework(testcase.TestCase): __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 diff --git a/xtesting/core/feature.py b/xtesting/core/feature.py index 946233d6..feae9885 100644 --- a/xtesting/core/feature.py +++ b/xtesting/core/feature.py @@ -85,7 +85,7 @@ class BashFeature(Feature): __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): diff --git a/xtesting/core/mts.py b/xtesting/core/mts.py index b9f605b8..3bc7bde9 100644 --- a/xtesting/core/mts.py +++ b/xtesting/core/mts.py @@ -43,7 +43,7 @@ class MTSLauncher(feature.BashFeature): 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. @@ -214,7 +214,7 @@ class MTSLauncher(feature.BashFeature): 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", diff --git a/xtesting/core/robotframework.py b/xtesting/core/robotframework.py index 64ee352c..3e3d9de8 100644 --- a/xtesting/core/robotframework.py +++ b/xtesting/core/robotframework.py @@ -55,7 +55,7 @@ class RobotFramework(testcase.TestCase): __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): diff --git a/xtesting/core/testcase.py b/xtesting/core/testcase.py index 15936f1d..672ba3f7 100644 --- a/xtesting/core/testcase.py +++ b/xtesting/core/testcase.py @@ -89,7 +89,7 @@ class TestCase(metaclass=abc.ABCMeta): 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. diff --git a/xtesting/core/unit.py b/xtesting/core/unit.py index 9d549a2d..8bcf163a 100644 --- a/xtesting/core/unit.py +++ b/xtesting/core/unit.py @@ -32,7 +32,7 @@ class Suite(testcase.TestCase): __logger = logging.getLogger(__name__) def __init__(self, **kwargs): - super(Suite, self).__init__(**kwargs) + super().__init__(**kwargs) self.suite = None @classmethod diff --git a/xtesting/core/vnf.py b/xtesting/core/vnf.py index 8aab2337..72d54b51 100644 --- a/xtesting/core/vnf.py +++ b/xtesting/core/vnf.py @@ -42,7 +42,7 @@ class VnfOnBoarding(testcase.TestCase): __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) |