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()
''' 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)