def __init__(self): sites_callback = SitesCallback(cmk.gui.sites.states, bi_livestatus_query) self.compiler = BICompiler(self.bi_configuration_file(), sites_callback) self.compiler.load_compiled_aggregations() self.status_fetcher = BIStatusFetcher(sites_callback) self.computer = BIComputer(self.compiler.compiled_aggregations, self.status_fetcher)
def bi_status_fetcher(): status_fetcher = BIStatusFetcher(SitesCallback(lambda: None, lambda: None)) yield status_fetcher
def bi_status_fetcher(): status_fetcher = BIStatusFetcher( SitesCallback(lambda: None, mock_query_callback)) yield status_fetcher