def setUp(self): '''初始化请求数据url''' url = LiveAPIData.urlData(self) url = url+"/api/v2/record/search?" self.search_data = LiveAPIData.searchData(self) t = THQS.thqs() search_data = t.get_thqs(self.search_data) self.search_url = url+search_data self.live = LiveAPIRequests.LiveAPIRequests
def setUp(self): url = "http://api.csslcloud.net/api/room/search?" data = LiveAPIData.searchData(self) search_data,fail_data = data[0],data[1] t = THQS.thqs() self.search_data = t.get_thqs(search_data) self.fail_data = t.get_thqs(fail_data) self.fail_url = url + self.fail_data self.search_url = url + self.search_data self.live = LiveAPIRequests.LiveAPIRequests sql_data = SQLData.SQLData() self.s_roomid = sql_data.select_roomid()