rename _execute_tests_list

This commit is contained in:
Daniel 2023-12-11 11:34:05 +01:00
parent 2c406c3a34
commit dd5fe859e8

View file

@ -43,18 +43,18 @@ class Runner:
def run_setups(self): def run_setups(self):
"""runs the setup scripts if available""" """runs the setup scripts if available"""
self._execute_test_list(self.setups) self._execute_tests_list(self.setups)
def run_tests(self): def run_tests(self):
"""runs the test scripts if available""" """runs the test scripts if available"""
self._execute_test_list(self.tests) self._execute_tests_list(self.tests)
def run_cleanups(self): def run_cleanups(self):
"""runs the cleanup scripts if available""" """runs the cleanup scripts if available"""
self._execute_test_list(self.cleanups) self._execute_tests_list(self.cleanups)
def _execute_test_list(self, test_list: list[Test]): def _execute_tests_list(self, test_list: list[Test]):
"""runs the main test script and if available and sub test scripts if their running condition is met""" """Runs all tests given in the list. If condition is defined, it is also checked."""
# check if required dependencies have passed # check if required dependencies have passed
if not self._dependencies_passed(): if not self._dependencies_passed():
logger.warning(f"skipping run_tests() of {self.env_type} (one or more dependencies have not passed)") logger.warning(f"skipping run_tests() of {self.env_type} (one or more dependencies have not passed)")