Beispiel #1
0
def context_modified_app(request):
    """
    Get a MediaGoblin app fixture using appconfig_context_modified.ini
    """
    return get_app(request,
                   mgoblin_config=pkg_resources.resource_filename(
                       'mediagoblin.tests', 'appconfig_context_modified.ini'))
Beispiel #2
0
def static_plugin_app(request):
    """
    Get a MediaGoblin app fixture using appconfig_static_plugin.ini
    """
    return get_app(request,
                   mgoblin_config=pkg_resources.resource_filename(
                       'mediagoblin.tests', 'appconfig_static_plugin.ini'))
Beispiel #3
0
def context_modified_app(request):
    """
    Get a MediaGoblin app fixture using appconfig_context_modified.ini
    """
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests', 'appconfig_context_modified.ini'))
def starttls_enabled_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            "mediagoblin.tests",
            "starttls_config.ini"
        )
    )
Beispiel #5
0
def static_plugin_app(request):
    """
    Get a MediaGoblin app fixture using appconfig_static_plugin.ini
    """
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests', 'appconfig_static_plugin.ini'))
Beispiel #6
0
def starttls_enabled_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            "mediagoblin.tests",
            "starttls_config.ini"
        )
    )
def test_app(request):
    try:
        config_file = request.cls.config_file
    except AttributeError:
        config_file = 'indexedsearch_mediagoblin.ini'

    return tools.get_app(request,
                         mgoblin_config=pkg_resources.resource_filename(
                             'test', config_file))
def test_app(request):
    try:
        config_file = request.cls.config_file
    except AttributeError:
        config_file = 'indexedsearch_mediagoblin.ini'

    return tools.get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'test', config_file))
Beispiel #9
0
def test_app(request):
    """
    py.test fixture to pass sandboxed mediagoblin applications into tests that
    want them.

    You could make a local version of this method for your own tests
    to override the paste and config files being used by passing them
    in differently to get_app.
    """
    return tools.get_app(request)
Beispiel #10
0
def test_app(request):
    """
    py.test fixture to pass sandboxed mediagoblin applications into tests that
    want them.

    You could make a local version of this method for your own tests
    to override the paste and config files being used by passing them
    in differently to get_app.
    """
    return tools.get_app(request)
def authentication_disabled_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests.auth_configs',
            'authentication_disabled_appconfig.ini'))
Beispiel #12
0
def persona_plugin_app(request):
    return get_app(request,
                   mgoblin_config=pkg_resources.resource_filename(
                       'mediagoblin.tests.auth_configs',
                       'persona_appconfig.ini'))
def openid_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename("mediagoblin.tests.auth_configs", "openid_appconfig.ini"),
    )
Beispiel #14
0
def audio_video_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests',
            'test_mgoblin_app_audio_video.ini'))
Beispiel #15
0
def pdf_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests',
            'test_mgoblin_app_pdf.ini'))
def audio_video_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests',
            'test_mgoblin_app_audio_video.ini'))
def pdf_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests',
            'test_mgoblin_app_pdf.ini'))
Beispiel #18
0
def authentication_disabled_app(request):
    return get_app(request,
                   mgoblin_config=pkg_resources.resource_filename(
                       'mediagoblin.tests.auth_configs',
                       'authentication_disabled_appconfig.ini'))
Beispiel #19
0
def persona_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests.auth_configs',
            'persona_appconfig.ini'))