def setUp(self) -> None: self.login_api = loginAPI() self.tender_api = tenderAPI() self.session = requests.Session() #登录成功 response = self.login_api.login(self.session) logging.info("login response={}".format(response.json())) assert_utils(self, response, 200, 200, "登录成功")
def setUp(self): self.login_api = loginAPI() self.session = requests.Session() self.phone1 = "13033446614" self.phone2 = "13033446615" self.phone3 = "13033446616" self.phone4 = "13033446617" self.phone5 = "13033446618" self.imgCode = "8888" self.pwd = "1111aaaa"
def setUp(self): self.login_api = loginAPI() self.tender_api = tenderAPI() self.session = requests.Session() self.tender_id = "448" self.phone = "13111111113" self.pwd = "1234qwer" response = self.login_api.login(self.session, self.phone, self.pwd) logging.info("login response={}".format(response.json())) assert_utils(self, response, 200, 200, "登录成功")
def setUpClass(cls): cls.login_api = loginAPI() cls.tender_api = tenderAPI() cls.session = requests.Session() cls.trust_api = trustAPI()
def setUp(self) -> None: self.login_api = loginAPI() self.session = requests.Session()
def setUp(self) -> None: #接口API的初始化 self.login_api = loginAPI() #session对象的初始化 self.session = requests.Session()
def setUp(self): self.login_api=loginAPI() self.trust_api=trustAPI() self.session=requests.Session()
def setUp(self) -> None: #API接口对象的初始化 self.login_api = loginAPI() self.approve_api = approveAPI() #session的初始化 self.session = requests.Session()
def setUp(self) -> None: #初始化API的对象 self.trust_api = trustAPI() self.login_api = loginAPI() #初始化session对象 self.session = requests.Session()