def reload_blokmanager(cls, **kwargs): """Reload all the bloks with their code sources""" RegistryManager.clear() # close all the registry BlokManager.reload() # reload all the blok code # FIXME BlokManager.reload should close all the registry and # forbidden load registry during the reload return [{'type': 'RELOAD'}]
def tearDown(self): """ Clear the registry, unload the blok manager and drop the database """ if self.registry: self.registry.close() RegistryManager.clear() BlokManager.unload() super(DBTestCase, self).tearDown()
def tearDown(self): """ Clear the registry, unload the blok manager and drop the database """ if self.registry: self.registry.close() RegistryManager.clear() BlokManager.unload() clear_mappers() super(DBTestCase, self).tearDown()
def tearDown(self): """ Clear the registry, unload the blok manager and drop the database """ registry = RegistryManager.get(Configuration.get('db_name')) registry.close() RegistryManager.clear() BlokManager.unload() clear_mappers() self.__class__.dropdb() super(TestBlok, self).tearDown()
def test_clear(self, bloks_loaded): init_registry(None) RegistryManager.clear()