def setUpClass(cls):
     # 保持登录状态
     cls.s = requests.session()
     cls.header = add_clientkey_to_headers.get_clientkey()
Beispiel #2
0
 def setUp(self):
     # 保持登录状态
     self.s = requests.session()
     header=add_clientkey_to_headers.get_clientkey()
     self.header=header
Beispiel #3
0
 def setUp(self):
     # 如果有登录的话,就在这里先登录了
     self.s = requests.session()
     header = add_clientkey_to_headers.get_clientkey()
     self.header = header
 def setUpClass(cls):
     # 如果有登录的话,就在这里先登录了
     cls.s = requests.session()
     header=add_clientkey_to_headers.get_clientkey()
     # print(header)
     cls.header = header
 def setUpClass(cls):
     # 登录获取clientkey
     cls.s = requests.session()
     header = add_clientkey_to_headers.get_clientkey()
     # print(header)
     cls.header = header