示例#1
0
def app():
    '''
    Load shipit_uplift app in test mode
    '''
    import shipit_uplift

    config = backend_common.testing.get_app_config({
        'SQLALCHEMY_DATABASE_URI': 'sqlite://',
        'SQLALCHEMY_TRACK_MODIFICATIONS': False,
    })
    app = shipit_uplift.create_app(config)

    with app.app_context():
        backend_common.testing.configure_app(app)
        yield app
示例#2
0
# -*- coding: utf-8 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import shipit_uplift

app = shipit_uplift.create_app()