Пример #1
0
 def clear(self):
     """Clear database."""
     engine = self._engine_facade.engine
     db_model.purge_all_tables(engine)
     self._engine_facade.session_maker.close_all()
     engine.dispose()
Пример #2
0
 def tearDown(self):
     db_model.purge_all_tables(self.facade.engine)
     super(ModelUtilTestCase, self).tearDown()
Пример #3
0
 def tearDown(self):
     models.purge_all_tables(self.facade.engine)
     super(SAModelsTestCase, self).tearDown()