Beispiel #1
0
    def setUp(self):
        TestWSGIController.setUp(self)
        tg.config.update({
            'paths': {'root': data_dir},
            'package': tests,
        })

        self.app = make_app(BasicTGController)
Beispiel #2
0
    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
        })
Beispiel #3
0
    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
        })
Beispiel #4
0
    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)
 def setUp(self, *args, **kargs):
     TestWSGIController.setUp(self, *args, **kargs)
     self.app = make_app(BasicTGController, config_options={
         'make_body_seekable': False
     })
Beispiel #9
0
 def setUp(self):
     TestWSGIController.setUp(self)
     tg.config.update({"paths": {"root": data_dir}, "package": tests})
     self.app = make_app(BasicTGController)