Exemple #1
0
 def create_db(cls, db):
     cls.db = db
     db_utils.drop_database(cls.db, ignore_exists=True)
     db_utils.drop_user(cls.db, ignore_exists=True)
     db_utils.create_user(cls.db, cls.db)
     db_utils.create_database(cls.db, cls.db)
     cls.engine = settings.create_engine_for(cls.db, cls.db, cls.db)
Exemple #2
0
 def tearDownClass(cls):
     cls.engine.dispose()
     if cls.CLEANUP:
         db_utils.drop_database(cls.db)
         db_utils.drop_user(cls.db)