def setUp(self): config = {'auth.backend': 'dummy', 'oidstorage.backend': 'memory', 'oid.host': 'http://localhost', 'oid.assoc_expires_in': 3600} user = test_config.get('auth.credentials').encode('base64') self.auth = {'HTTP_AUTHORIZATION': 'Basic ' + user} self.app = TestApp(make_app(config))
def setUp(self): # use a default 'dummy' config file. config = {'auth.backend': '%s.%s' % (FakeAuthTool.__module__, FakeAuthTool.__name__), 'oidstorage.backend': 'memory', 'oid.host': 'http://localhost', 'oid.assoc_expires_in': 3600} self.app = TestApp(make_app(config))
def setUp(self): config = { 'auth.backend': 'services.auth.dummy.DummyAuth', 'oidstorage.backend': 'oidserver.storage._redis.RedisStorage', #oid.host': 'http://localhost', 'oidstorage.host': 'id1.dev.mtv1.svc.mozilla.com', 'oidstorage.port': 6379} user = test_config.get('auth.credentials').encode('base64') self.auth = {'HTTP_AUTHORIZATION': 'Basic ' + user} self.app = TestApp(make_app(config))
def setUp(self, **kw): # use a default 'dummy' config file. config = { 'oidstorage.backend': 'oidserver.storage.memory.MemoryStorage', 'oid.host': 'http://*****:*****@example.org', 'oid.reply_to': '*****@*****.**', 'oid.admin_page': True, 'oid.login_host': 'http://localhost:80', 'test.nomail': True, 'global.debug_page': '__debug__' } self.app = TestApp(make_app(config)) self.app.reset() self.prep_db(**kw)
def setUp(self, **kw): # use a default 'dummy' config file. self.app = TestApp(make_app(self.config)) self.app.reset() self.jws = JWS(config = self.config)