Example #1
0
 def setup(self, config_name):
     """
     Creates tables in database
     """
     self.app = create_app(config_name)
     self.app_context = self.app.app_context()
     self.app_context.push()
     db.create_all()
Example #2
0
def sns_topic(app):
    TOPIC_ARN = 'arn:aws:sns:*:123456789012:my_topic'
    app.config['SNS_EVENT_ARN'] = TOPIC_ARN
    yield create_app('testing')
    app.config['SNS_EVENT_ARN'] = None
Example #3
0
#! /usr/bin/env python

import os
from dataservice import create_app

app = create_app(os.getenv('FLASK_CONFIG') or 'default')

if __name__ == '__main__':
    app.run()
Example #4
0
def app():
    yield create_app('testing')