예제 #1
0
파일: test.py 프로젝트: jagguli/aioweb
 def setUp(self):
     set_except_hook()
     from aioweb.config import set_config
     self.config = set_config(self.base_path, self.config_name)
     loggingconfig = configure_logging(self.base_path)
     test_logging(loggingconfig)
     self.loop = asyncio.new_event_loop()
     asyncio.set_event_loop(self.loop)
예제 #2
0
def main():
    base_path = os.path.dirname(__file__)
    set_config(base_path, 'development')
    configure_logging(base_path)
    init_database()
    startapp(SupplementMeProtocolFactory)