示例#1
0
 def run(self, **kwargs):
     __tracebackhide__ = True
     history = History()
     ctx, ns, lines, bind = make_context(self.methods[0][1], kwargs, history)
     run_protocol = make_run_protocol(self.failures, self.cls_name, self.name)
     runner = Run(run_protocol)
     return self.executor(runner, ctx, ns, bind, history, self.methods)
示例#2
0
 def __call__(self, **kwargs):
     __tracebackhide__ = True
     history = History()
     ctx, ns, lines, bind = make_context(self.methods[0][1], kwargs,
                                         history)
     runner = Call()
     return self.executor(runner, ctx, ns, bind, history, self.methods)
示例#3
0
 def __call__(self, **kwargs):
     __tracebackhide__ = True
     history = History()
     ctx = make_context(self.methods[0][1], kwargs, history)
     runner = Call()
     return function.execute(runner, ctx, history, self.methods)