def clear_config_caches(monkeypatch): from cmk.base.caching import config_cache as _config_cache, runtime_cache as _runtime_cache _config_cache.reset() _runtime_cache.reset() ts = Scenario() ts.add_host("non-existent-testhost") ts.apply(monkeypatch)
def clear_config_caches_ip_lookup(monkeypatch): from cmk.base.caching import config_cache as _config_cache, runtime_cache as _runtime_cache # pylint: disable=import-outside-toplevel _config_cache.reset() _runtime_cache.reset()
def clear_config_caches(monkeypatch): from cmk.base.caching import config_cache as _config_cache, runtime_cache as _runtime_cache _config_cache.reset() _runtime_cache.reset()