def main(): logging.getLogger().setLevel(logging.DEBUG) publish_urls = [('/', MainPage), ('/img', ImageServe), ('/vote', Vote), ('/skip', Skip), ('/share', Share), ('/feed', Feed), ('/enter', Entrance), ('/data', DataHandler), ('/logout', Logout)] # in pre-production extend the publish list with the test URLs if chill_config.isDebug(): publish_urls.extend([('/tests/login', LoginScaffolding), ('/tests/image', ImageServeScaffolding)]) application = webapp.WSGIApplication(publish_urls, chill_config.isDebug()) application = chill_config.add_middleware(application) run_wsgi_app(application)
def setUp(self): logging.info('In setUp()') self.application = webapp.WSGIApplication([('/', MainPage)], debug=True) self.application = chill_config.add_middleware(self.application)