Beispiel #1
0
 def __init__(self, actor, reporter, debugger=None):
     if isinstance(actor, str):
         actor = codeloader.construct(actor, call_by_default=True)
     self.actor = actor
     self.reporter = reporter
     if isinstance(debugger, str):
         debugger = codeloader.construct(debugger, call_by_default=True)
     self.debugger = debugger
     self.log = log
Beispiel #2
0
 def __init__(self, actor, reporter, debugger=None):
     if isinstance(actor, str):
         actor = codeloader.construct(actor, call_by_default=True)
     self.actor = actor
     self.reporter = reporter
     if isinstance(debugger, str):
         debugger = codeloader.construct(debugger, call_by_default=True)
     self.debugger = debugger
     self.log = log
Beispiel #3
0
def build(specs):
    """Import, construct and aggregate requested reporters."""
    reporters = []

    for spec in specs:
        reporters.append(
            codeloader.construct(spec,
                                 default_module=__name__,
                                 call_by_default=True))

    return ReporterHerd(reporters=reporters)
def build(specs):
    """Import, construct and aggregate requested reporters."""
    reporters = []

    for spec in specs:
        reporters.append(
            codeloader.construct(
                spec,
                default_module=__name__,
                call_by_default=True))

    return ReporterHerd(reporters=reporters)
Beispiel #5
0
def build(specs):
    """Import, construct and aggregate requested reporters."""
    planners = []

    for spec in specs:
        planners.append(
            codeloader.construct(spec,
                                 default_module=__name__,
                                 call_by_default=True))

    if len(planners) == 1:
        return planners[0]
    else:
        return MasterPlan(planners)
def build(specs):
    """Import, construct and aggregate requested reporters."""
    planners = []

    for spec in specs:
        planners.append(
            codeloader.construct(
                spec,
                default_module=__name__,
                call_by_default=True))

    if len(planners) == 1:
        return planners[0]
    else:
        return MasterPlan(planners)
Beispiel #7
0
def build(spec):
    return codeloader.construct(spec,
                                default_module=__name__,
                                call_by_default=True)
Beispiel #8
0
def build(spec):
    return codeloader.construct(
        spec,
        default_module=__name__,
        call_by_default=True)