def tearDown(self): db.drop()
def test(): """Run tests.""" db.drop(db_name='test_app', warn=False) db.build(db_name='test_app', config='test') app.test() db.drop(db_name='test_app', warn=False)
""" """ # Native import random import time # 3rd-Party # Proprietary import db session = db.session db.drop() print "Deploy: Dropped database" db.init() print "Deploy: Initialized database" start = time.time() print "Deploy: Committing to database..." session.commit() print "Deploy: Committed to database in %.2fs" % (time.time() - start)