Ejemplo n.º 1
0
 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'}]
Ejemplo n.º 2
0
    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()
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
 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()
Ejemplo n.º 5
0
 def test_clear(self, bloks_loaded):
     init_registry(None)
     RegistryManager.clear()