Ejemplo n.º 1
0
 def start_env(self):
     api.start_runner(code=self.code,
                      runner=self.runner,
                      prefix=REQ,
                      controller_type=SIMPLE,
                      callback=self.run_success,
                      errback=self.fail_cur_step,
                      add_close_builtins=self.add_close_builtins,
                      add_allowed_modules=self.add_allowed_modules,
                      remove_allowed_modules=self.remove_allowed_modules,
                      write_execute_data=True,
                      cover_code=self.cover_code.get(self.runner))
Ejemplo n.º 2
0
 def start_env(self):
     api.start_runner(code=self.code,
                      runner=self.runner,
                      prefix=REQ,
                      controller_type=SIMPLE,
                      callback=self.run_success,
                      errback=self.fail_cur_step,
                      add_close_builtins=self.add_close_builtins,
                      add_allowed_modules=self.add_allowed_modules,
                      remove_allowed_modules=self.remove_allowed_modules,
                      write_execute_data=True,
                      cover_code=self.cover_code.get(self.runner))
Ejemplo n.º 3
0
 def start_env(self, data=None):
     req_name = REQ + str(self.run_count)
     if self.run_count >= self.quantity - 1:
         callback = self.run_success
         self.run_count = 0
     else:
         self.run_count += 1
         callback = self.start_env
     api.start_runner(code=self.code,
                      runner=self.runner,
                      prefix=req_name,
                      controller_type=SIMPLE,
                      callback=callback,
                      errback=self.fail_cur_step,
                      add_close_builtins=self.add_close_builtins,
                      add_allowed_modules=self.add_allowed_modules,
                      remove_allowed_modules=self.remove_allowed_modules,
                      write_execute_data=False,
                      cover_code=self.cover_code.get(self.runner))
Ejemplo n.º 4
0
 def start_env(self):
     api.start_runner(**self.start_env_params())