18 split_args_from_name_or_path, type_name, Importer)
20 from .visitor
import SuiteVisitor
25 def __init__(self, visitors, empty_suite_ok, logger):
36 self.
_log_error_log_error(
"Executing model modifier '%s' failed: %s\n%s"
39 raise DataError(
"Suite '%s' contains no tests after model "
40 "modifiers." % suite.name)
43 importer = Importer(
'model modifier')
44 for visitor
in visitors:
50 yield importer.import_class_or_module(name, args)
51 except DataError
as err:
Used when variable does not exist.
def _yield_visitors(self, visitors)
def visit_suite(self, suite)
Implements traversing through the suite and its direct children.
def __init__(self, visitors, empty_suite_ok, logger)
Interface to ease traversing through a test suite structure.
def get_error_details(exclude_robot_traces=EXCLUDE_ROBOT_TRACES)
Returns error message and details of the last occurred exception.
def split_args_from_name_or_path(name)