parameters: (self)
docstring: Stops the server
docstring_summary: Stops the server
docstring_tokens: Stops the server
function: def stop(self):
          """Stops the server"""
          command = [self.app, "--bare-mode"]
          if self.config_arg:
              command.append(self.config_arg)
          command = command + ["-e", f":{self.port}", "stop"]
          LOGGER.debug(f"stopping server fixture: {command}")
          stop_out = open(self.cwd / "stop.out", "w")
          stop_err = open(self.cwd / "stop.err", "w")
          stop = 0
          try:
              stop = spawn(
                  command,
                  cwd=self.cwd,
                  stdout=stop_out,
                  stderr=stop_err,
              ).wait(STEP_TIMEOUT)
          except:
              stop.kill()
          try:
              self.process.wait(STEP_TIMEOUT)
          except:
              self.process.kill()
function_tokens: def stop ( self ) : command = [ self . app , "--bare-mode" ] if self . config_arg : command . append ( self . config_arg ) command = command + [ "-e" , f":{self.port}" , "stop" ] LOGGER . debug ( f"stopping server fixture: {command}" ) stop_out = open ( self . cwd / "stop.out" , "w" ) stop_err = open ( self . cwd / "stop.err" , "w" ) stop = 0 try : stop = spawn ( command , cwd = self . cwd , stdout = stop_out , stderr = stop_err , ) . wait ( STEP_TIMEOUT ) except : stop . kill ( ) try : self . process . wait ( STEP_TIMEOUT ) except : self . process . kill ( )