Exemplo n.º 1
0
 def setUp(self):
     app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://*****:*****@localhost:3306/brew_pye_test'
     app.config['TESTING'] = True
     
     self.app = app.test_client()
     db.init_app(app)
     with app.app_context():
         db.create_all()
Exemplo n.º 2
0
'''
Created on Jan 16, 2014

@author: jmiller
'''
from brew_py import app, db
with app.app_context():
    db.init_app(app)
    db.create_all()
app.run(debug=False)
Exemplo n.º 3
0
 def tearDown(self):
     with app.app_context():
         db.drop_all()