diff options
Diffstat (limited to 'xtesting/ci')
-rw-r--r-- | xtesting/ci/run_tests.py | 2 | ||||
-rw-r--r-- | xtesting/ci/tier_builder.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index 4477dedd..cf7fe425 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -113,7 +113,7 @@ class Runner(): @staticmethod def get_dict_by_test(testname): - # pylint: disable=bad-continuation,missing-docstring + # pylint: disable=missing-docstring with open(pkg_resources.resource_filename( 'xtesting', 'ci/testcases.yaml')) as tyaml: testcases_yaml = yaml.safe_load(tyaml) diff --git a/xtesting/ci/tier_builder.py b/xtesting/ci/tier_builder.py index 2b212205..9b8ac7df 100644 --- a/xtesting/ci/tier_builder.py +++ b/xtesting/ci/tier_builder.py @@ -86,31 +86,31 @@ class TierBuilder(): return tier_names def get_tier(self, tier_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].get_name() == tier_name: return self.tier_objects[i] return None def get_tier_name(self, test_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].is_test(test_name): return self.tier_objects[i].name return None def get_test(self, test_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].is_test(test_name): return self.tier_objects[i].get_test(test_name) return None def get_tests(self, tier_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].get_name() == tier_name: return self.tier_objects[i].get_tests() return None def __str__(self): output = "" - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): output += str(self.tier_objects[i]) + "\n" return output |