def test_app_no_perm(request, base_registry): global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('assembl').location } return TestApp(assembl.main( global_config, nosecurity=True, **get_config()))
def test_app_no_perm(request, base_registry): global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('assembl').location } return TestApp(assembl.main( global_config, nosecurity=True, **get_config()))
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 test_app_no_perm(request, base_registry, db_tables): global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('assembl').location } app = TestApp(assembl.main( global_config, nosecurity=True, **get_config())) app.PyramidWebTestRequest = PyramidWebTestRequest return app
def test_app_no_perm(request, base_registry, db_tables): """A configured Assembl fixture with no permissions""" global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('assembl').location } app = TestApp(assembl.main(global_config, nosecurity=True, **get_config())) app.PyramidWebTestRequest = PyramidWebTestRequest return app
def test_app_no_perm(request, base_registry, db_tables): """A configured Assembl fixture with no permissions""" global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('assembl').location } config = dict(get_config()) config['nosecurity'] = True app = TestApp(assembl.main(global_config, **config)) app.PyramidWebTestRequest = PyramidWebTestRequest PyramidWebTestRequest._pyramid_app = app.app PyramidWebTestRequest._registry = base_registry return app
def test_app_no_perm(request, base_registry, db_tables): """A configured IdeaLoom fixture with no permissions""" global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('idealoom').location } config = dict(get_config()) config['nosecurity'] = True app = TestApp(assembl.main(global_config, **config)) app.PyramidWebTestRequest = PyramidWebTestRequest PyramidWebTestRequest._pyramid_app = app.app PyramidWebTestRequest.registry = base_registry return app
def setUp(self): optparse = OptionParser() add_parser_options(optparse) options, args = optparse.parse_args(sys.argv) self.app_settings_file = options.test_settings_file self.app_settings = get_appsettings(self.app_settings_file) self.logger = logging.getLogger("assembl_tests") self.app_settings = get_appsettings(self.app_settings_file) self.session_factory = get_session_maker() transaction.begin() self.session = self.session_factory() global_config = {"__file__": self.app_settings_file, "here": get_distribution("assembl").location} self.app = TestApp(assembl.main(global_config, nosecurity=True, **self.app_settings)) self.config = testing.setUp(registry=self.app.app.registry, settings=self.app_settings) self.zopish = is_zopish()
def test_app_no_perm(request, base_registry, db_tables): """A configured IdeaLoom fixture with no permissions""" global_config = { '__file__': request.config.getoption('test_settings_file'), 'here': get_distribution('idealoom').location } config = dict(get_config()) config['nosecurity'] = True app = TestApp(assembl.main(global_config, **config)) app.PyramidWebTestRequest = PyramidWebTestRequest PyramidWebTestRequest._pyramid_app = app.app PyramidWebTestRequest.registry = base_registry def fin(): print("finalizer test_app_no_perm") session = db_tables() with transaction.manager: clear_rows(get_config(), session) request.addfinalizer(fin) return app