示例#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'))
示例#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'))
示例#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'))
示例#4
0
def starttls_enabled_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            "mediagoblin.tests",
            "starttls_config.ini"
        )
    )
示例#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'))
示例#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))
示例#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)
示例#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'))
示例#12
0
def persona_plugin_app(request):
    return get_app(request,
                   mgoblin_config=pkg_resources.resource_filename(
                       'mediagoblin.tests.auth_configs',
                       'persona_appconfig.ini'))
示例#13
0
def openid_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename("mediagoblin.tests.auth_configs", "openid_appconfig.ini"),
    )
示例#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'))
示例#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'))
示例#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'))
示例#19
0
def persona_plugin_app(request):
    return get_app(
        request,
        mgoblin_config=pkg_resources.resource_filename(
            'mediagoblin.tests.auth_configs',
            'persona_appconfig.ini'))