Commit 8bd7c2434422cc8b43dbaf0477998f5ea23eb21f

Authored by wenleiming
1 parent 892f2078

修改hd

commons/MySession.py
@@ -176,7 +176,7 @@ class mysession(requests.Session): @@ -176,7 +176,7 @@ class mysession(requests.Session):
176 if "UAP_refreshToken" in kwargs["headers"].keys(): 176 if "UAP_refreshToken" in kwargs["headers"].keys():
177 kwargs["headers"]["UAP_refreshToken"] = self.re.json()["data"]["refreshToken"] 177 kwargs["headers"]["UAP_refreshToken"] = self.re.json()["data"]["refreshToken"]
178 if "UAP_firmId" in kwargs["headers"].keys(): 178 if "UAP_firmId" in kwargs["headers"].keys():
179 - kwargs["headers"]["UAP_firmId"] = self.re.json()["data"]["user"]["firmId"] 179 + kwargs["headers"]["UAP_firmId"] = str(self.re.json()["data"]["user"]["firmId"])
180 if "Host" in kwargs["headers"].keys(): 180 if "Host" in kwargs["headers"].keys():
181 kwargs["headers"]["Host"]=host 181 kwargs["headers"]["Host"]=host
182 log.info("{}\n{}\n".format(url, kwargs)) 182 log.info("{}\n{}\n".format(url, kwargs))
testcase/hg/tradingOrder/test_listFixedPaid.py
@@ -19,7 +19,6 @@ class test_listFixedPaid(unittest.TestCase): @@ -19,7 +19,6 @@ class test_listFixedPaid(unittest.TestCase):
19 print(re.json()) 19 print(re.json())
20 self.assertEqual(re.status_code, 200) 20 self.assertEqual(re.status_code, 200)
21 self.assertTrue("'操作成功'" in str(re.json()).replace(" ","")) 21 self.assertTrue("'操作成功'" in str(re.json()).replace(" ",""))
22 - self.assertEqual(re.status_code, 200)  
23 22
24 23
25 if __name__ == '__main__': 24 if __name__ == '__main__':