def setUp(self): self.set_up_list = configAPI.configlist self.GET_URL = self.set_up_list[0] self.oAuth = oAuthGenerator.Auth(self, self.set_up_list[6], self.set_up_list[7], self.set_up_list[8], self.set_up_list[9]) self.params = {'client_id': self.set_up_list[1]} self.header = {'Authorization': self.oAuth, 'Content-Type':'application/json'} self.db = pymysql.connect(self.set_up_list[2], self.set_up_list[3], self.set_up_list[4],self.set_up_list[5]) self.cursor = self.db.cursor()
def setUp(self): self.configlist = configAPI.configlist self.GET_URL = self.configlist[0] self.base_url = self.configlist[1] self.oAuth = oAuthGenerator.Auth(self, self.configlist[8], self.configlist[9], self.configlist[10], self.configlist[11]) self.header = { 'Authorization': self.oAuth, 'Content-Type': 'application/json' } self.parms = { 'client_id': self.configlist[2], 'millennium_org_id': self.configlist[3] } self.db = pymysql.connect(self.configlist[4], self.configlist[5], self.configlist[6], self.configlist[7]) self.cursor = self.db.cursor()