def initialize_environment(self): # setup logging log.init_logging() self._logger = log.logger.getChild("background_process") self._log_path_hint = _("More information can be found in ~/var/log/web.log") # Disable html request timeout if html.in_context(): html.disable_request_timeout() # Close livestatus connections inherited from the parent process sites.disconnect() super(GUIBackgroundProcess, self).initialize_environment()
def test_htmllib_integration(register_builtin_html): assert html.request.request_timeout == 110 html.enable_request_timeout() html.disable_request_timeout()