def setUp(self): self.login_api=loginAPI() self.trust_api=trustAPI() self.session=requests.Session()
def setUpClass(cls): cls.login_api = loginAPI() cls.tender_api = tenderAPI() cls.session = requests.Session() cls.trust_api = trustAPI()
def setUp(self) -> None: #初始化API的对象 self.trust_api = trustAPI() self.login_api = loginAPI() #初始化session对象 self.session = requests.Session()