def setUp(self): cache_managers.clear() cache_opts = { 'cache.type': 'memory', 'cache.regions': 'dummyunittest', 'cache.expire': 10 } self.cache_mgr = CacheManager(**parse_cache_config_options(cache_opts))
def setUp(self): cache_managers.clear() cache_opts = { 'cache.type': 'memory', 'cache.regions': 'public.data, public.filtered_data, unittest, public.shortlived, public.very_shortlived' } self.cache_mgr = CacheManager(**parse_cache_config_options(cache_opts)) set_tenant_map({'tomcat': 'NC', get_unittest_tenant_name(): 'NC'})
def setUp(self): cache_managers.clear() cache_opts = { 'cache.type': 'memory', 'cache.regions': 'public.data, public.filtered_data, unittest, public.shortlived, public.very_shortlived' } CacheManager(**parse_cache_config_options(cache_opts)) self.tenant = get_unittest_tenant_name()
def tearDown(self): # reset the registry testing.tearDown() cache_managers.clear()
def tearDown(self): testing.tearDown() cache_managers.clear() cache_regions.clear()
def tearDown(self): cache_managers.clear()
def tearDown(self): # reset the registry testing.tearDown() cache_managers.clear() self.__temp_dir.cleanup()