Beispiel #1
0
 def setUp(self):
     # identity requires visit and a failure_url
     test_config = {'global': {
         'visit.on': True, 'identity.on': True,
         'identity.failure_url': '/identity_failed',
         'identity.force_external_redirect': False,
         'identity.soprovider.encryption_algorithm': None}}
     original_config = dict()
     for key in test_config['global']:
         original_config[key] = config.get(key)
     self._original_config = original_config
     config.configure_loggers(test_config)
     config.update(test_config['global'])
     cherrypy.root = IdentityRoot()
     startup.startTurboGears()
     self.init_model()
 def setUp(self):
     # identity requires visit and a failure_url
     test_config = {
         'global': {
             'visit.on': True,
             'identity.on': True,
             'identity.failure_url': '/identity_failed',
             'identity.force_external_redirect': False,
             'identity.soprovider.encryption_algorithm': None
         }
     }
     original_config = dict()
     for key in test_config['global']:
         original_config[key] = config.get(key)
     self._original_config = original_config
     config.configure_loggers(test_config)
     config.update(test_config['global'])
     cherrypy.root = IdentityRoot()
     startup.startTurboGears()
     self.init_model()
 def setUp(self):
     # identity requires visit and a failure_url
     test_config = {'global': {
         'visit.on': True, 'identity.on': True,
         'visit.manager': 'sqlalchemy',
         'identity.failure_url': '/identity_failed',
         'identity.soprovider.encryption_algorithm': None,
         'identity.http_basic_auth': False,
         'identity.http_auth_realm': None,
         'tg.strict_parameters': True,
         'tg.allow_json': False}}
     if not self.config:
         original_config = dict()
         for key in test_config['global']:
             original_config[key] = config.get(key)
         self.config = original_config
     config.configure_loggers(test_config)
     config.update(test_config['global'])
     super(TestIdentity, self).setUp()
     self.init_model()