diff --git a/pytest_abra/runner.py b/pytest_abra/runner.py index 72561ac..99c494f 100644 --- a/pytest_abra/runner.py +++ b/pytest_abra/runner.py @@ -43,18 +43,18 @@ class Runner: def run_setups(self): """runs the setup scripts if available""" - self._execute_test_list(self.setups) + self._execute_tests_list(self.setups) def run_tests(self): """runs the test scripts if available""" - self._execute_test_list(self.tests) + self._execute_tests_list(self.tests) def run_cleanups(self): """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]): - """runs the main test script and if available and sub test scripts if their running condition is met""" + def _execute_tests_list(self, test_list: list[Test]): + """Runs all tests given in the list. If condition is defined, it is also checked.""" # check if required dependencies have passed if not self._dependencies_passed(): logger.warning(f"skipping run_tests() of {self.env_type} (one or more dependencies have not passed)")