示例#1
0
def setUpPackage():
    """Setup the plugin."""
    from default import flask_app
    with flask_app.app_context():
        settings = os.path.abspath('./settings_test.py')
        flask_app.config.from_pyfile(settings)
        plugin_dir = os.path.dirname(plugin.__file__)
        plugin.PyBossaZ3950(plugin_dir).setup()
def setUpPackage():
    """Setup the plugin."""
    from default import flask_app
    with flask_app.app_context():
        settings = os.path.abspath('./settings_test.py')
        flask_app.config.from_pyfile(settings)
        plugin_dir = os.path.dirname(plugin.__file__)
        plugin.PyBossaGitHubBuilder(plugin_dir).setup()
示例#3
0
def setUpPackage():
    """Setup the plugin."""
    from default import flask_app
    with flask_app.app_context():
        pb_settings = os.path.abspath(PYBOSSA_TEST_SETTINGS)
        pb_lc_settings = os.path.abspath('settings_test.py')
        flask_app.config.from_pyfile(pb_settings)
        flask_app.config.from_pyfile(pb_lc_settings)
        plugin_dir = os.path.dirname(plugin.__file__)
        plugin.PyBossaLC(plugin_dir).setup()
def setUpPackage():
    """Setup the plugin."""
    from default import flask_app
    with flask_app.app_context():
        plugin_dir = os.path.dirname(plugin.__file__)
        plugin.LibCrowdsStatistics(plugin_dir).setup()

        # Remove event listeners
        func = event_listeners.record_new_task_run_ip_event
        event.remove(TaskRun, 'before_insert', func)
示例#5
0
def setUpPackage():
    """Setup the plugin."""
    from default import flask_app
    with flask_app.app_context():
        plugin_dir = os.path.dirname(plugin.__file__)
        plugin.LibCrowdsData(plugin_dir).setup()