def test_app_no_perm(request, app_settings): global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('assembl').location } app = TestApp(assembl.main( global_config, nosecurity=True, **app_settings)) configure_tasks(app.app.registry, 'assembl') return app
def base_registry(request, app_settings): from assembl.views.traversal import root_factory from pyramid.config import Configurator from zope.component import getGlobalSiteManager registry = getGlobalSiteManager() config = Configurator(registry) config.setup_registry( settings=app_settings, root_factory=root_factory) configure_tasks(registry, 'assembl') return registry
def base_registry(request): """A Zope registry that is configured by with the testing.ini""" from assembl.views.traversal import root_factory from pyramid.config import Configurator from zope.component import getGlobalSiteManager registry = getGlobalSiteManager() config = Configurator(registry) config.setup_registry(settings=get_config(), root_factory=root_factory) configure_tasks(registry, 'assembl') config.add_tween('assembl.tests.utils.committing_session_tween_factory') return registry
def base_registry(request): from assembl.views.traversal import root_factory from pyramid.config import Configurator from zope.component import getGlobalSiteManager registry = getGlobalSiteManager() config = Configurator(registry) config.setup_registry( settings=get_config(), root_factory=root_factory) configure_tasks(registry, 'assembl') config.add_tween('assembl.tests.pytest_fixtures.zopish_session_tween_factory') return registry
def base_registry(request): """A Zope registry that is configured by with the testing.ini""" from assembl.views.traversal import root_factory from pyramid.config import Configurator from zope.component import getGlobalSiteManager registry = getGlobalSiteManager() config = Configurator(registry) config.setup_registry( settings=get_config(), root_factory=root_factory) configure_tasks(registry, 'assembl') config.add_tween('assembl.tests.utils.committing_session_tween_factory') return registry