Example #1
0
from acm_phoenix import db, create_app
app = create_app('config.DevelopmentConfig')
db.drop_all(app=app)
db.create_all(app=app)
exit()
Example #2
0
 def create_app(self):
     """Creates testing application with correct database configuration"""
     app = create_app('config.TestingConfig')
     self.twill = Twill(app, port=3000)
     return app