def get_app(self): with mock.patch.object(web.Application, '_set_password', new=set_dumb_password): self.application = web.make_app(dict( main.DEFAULT_CONFIG, NAME="Test Taguette instance", PORT=7465, DATABASE=DATABASE_URI, EMAIL='*****@*****.**', MAIL_SERVER={'host': 'localhost', 'port': 25}, COOKIES_PROMPT=True, MULTIUSER=True, SECRET_KEY='2PbQ/5Rs005G/nTuWfibaZTUAo3Isng3QuRirmBK', )) return self.application
def get_app(self): with mock.patch.object(web.Application, '_set_password', new=set_dumb_password): self.application = web.make_app( dict( main.DEFAULT_CONFIG, NAME="Test Taguette instance", PORT=7465, DATABASE=DATABASE_URI, EMAIL='*****@*****.**', MAIL_SERVER={'host': 'localhost', 'port': 25}, COOKIES_PROMPT=False, MULTIUSER=False, SECRET_KEY='bq7ZoAtO7LtRJJ4P0iHSdH8yvcmCqynfeGB+x9y1', ), xsrf_cookies=False, ) return self.application