def setUp(self): super(WararaTestBase, self).setUp() # TEST 용 Backend 생성 model.init_test_database() self.arara_engine = arara_engine.ARAraEngine() warara_middleware.set_server(self.arara_engine)
def setUp(self): super(WararaTestBase, self).setUp() # TEST 용 Backend 생성 model.init_test_database() self.arara_engine = arara_engine.ARAraEngine() warara_middleware.set_server(self.arara_engine) self.client = Client()
def main(): model.init_test_database() interface_class = ARAraThriftInterface.Iface handler_instance = arara_engine.ARAraEngine() interface_method_name_list = [ x[0] for x in inspect.getmembers(interface_class, predicate=inspect.ismethod) ] handler_method_name_list = [ x[0] for x in inspect.getmembers(handler_instance, predicate=inspect.ismethod) ] engine_miss_api = [ x for x in interface_method_name_list if not x in handler_method_name_list and not x in ['__init__'] ] api_miss_engine = [ x for x in handler_method_name_list if not x in interface_method_name_list and not x in ['__init__'] ] if engine_miss_api: print " * ARAraEngine misses several functions defined in Thrift Interface" print for function in engine_miss_api: print " ", function print if api_miss_engine: print " * Thrift Interface misses several functions defined in ARAraEngine" print for function in api_miss_engine: print " ", function print