Example #1
0
 def tearDown(self):
     db.drop()
Example #2
0
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)
Example #3
0
"""
"""

# 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)