def create_app(self): app = create_app() db_uri = "%s/%s" % (settings.DATABASE_URI_PREFIX, settings.TEST_DATABASE_NAME) app.config['SQLALCHEMY_DATABASE_URI'] = db_uri app.config['TESTING'] = True settings.SITE_DOMAIN_NAME = 'localhost:5000' return app
# -*- coding: utf-8 -*- from devstream import create_app if __name__ == '__main__': app = create_app() app.run()