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 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'))
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" ) )
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'))
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))
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'))
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"), )
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'))
def authentication_disabled_app(request): return get_app(request, mgoblin_config=pkg_resources.resource_filename( 'mediagoblin.tests.auth_configs', 'authentication_disabled_appconfig.ini'))
def persona_plugin_app(request): return get_app( request, mgoblin_config=pkg_resources.resource_filename( 'mediagoblin.tests.auth_configs', 'persona_appconfig.ini'))