def setUp(self): TestWSGIController.setUp(self) tg.config.update({ 'paths': {'root': data_dir}, 'package': tests, }) self.app = make_app(BasicTGController)
def setUp(self): TestWSGIController.setUp(self) tg.config.update({ 'paths': {'root': data_dir}, 'package': tests, }) self.app = make_app(BasicTGController, config_options={ 'i18n.enabled': True })
def setUp(self): TestWSGIController.setUp(self) tg.config.update({ 'paths': {'root': data_dir}, 'package': tests, }) # Mimic configuration of a controller wrapper, this is required as # TestWSGIController doesn't actually create an AppConfig # so configurations don't get resolved. cwrapper = ControllerWrapperForErrorHandler(None, call_controller) wrappers_conf = {default_im_func(BasicTGController.hooked_error_handler): cwrapper} tg.config.update({'dedicated_controller_wrappers': wrappers_conf}) self.app = make_app(BasicTGController)
def setUp(self, *args, **kargs): TestWSGIController.setUp(self, *args, **kargs) self.app = make_app(BasicTGController, config_options={'make_body_seekable': False})
def setUp(self, *args, **kargs): TestWSGIController.setUp(self, *args, **kargs) self.app = make_app(BasicTGController)
def setUp(self, *args, **kargs): TestWSGIController.setUp(self, *args, **kargs) self.app = make_app(BasicTGController, config_options={ 'make_body_seekable': False })
def setUp(self): TestWSGIController.setUp(self) tg.config.update({"paths": {"root": data_dir}, "package": tests}) self.app = make_app(BasicTGController)