Commit edcdb85b8ea1d7ffd6f816843f0836efa3388199
1 parent
1ffc6b4d
更新进门称重的方法
Showing
2 changed files
with
4 additions
and
4 deletions
commons/MySession.py
@@ -264,4 +264,3 @@ sy1=mysession().get_session_client("sy_user01") | @@ -264,4 +264,3 @@ sy1=mysession().get_session_client("sy_user01") | ||
264 | sy2=mysession().get_session_client("sy_user02") | 264 | sy2=mysession().get_session_client("sy_user02") |
265 | # sg=mysession().get_session_client("sg_user01") | 265 | # sg=mysession().get_session_client("sg_user01") |
266 | 266 | ||
267 | - |
testcase/CZFW/test_weightBizBill_doRefund.py
@@ -21,9 +21,10 @@ class test_weightBizBill_doRefund(unittest.TestCase): | @@ -21,9 +21,10 @@ class test_weightBizBill_doRefund(unittest.TestCase): | ||
21 | def setUp(self): | 21 | def setUp(self): |
22 | "数据准备:新增一条称重单" | 22 | "数据准备:新增一条称重单" |
23 | body=ad.body.copy() | 23 | body=ad.body.copy() |
24 | - body["carTypeId"]=ca.car_list()["data"][0]["id"] | ||
25 | - body["carTypeName"]=ca.car_list()["data"][0]["carTypeName"] | ||
26 | - body["carTypeCode"]=ca.car_list()["data"][0]["code"] | 24 | + car=ca.car_list()["data"] |
25 | + body["carTypeId"]=car[0]["id"] | ||
26 | + body["carTypeName"]=car[0]["carTypeName"] | ||
27 | + body["carTypeCode"]=car[0]["code"] | ||
27 | self.re=sy1.post(url=ad.url,headers=ad.header,json=body) | 28 | self.re=sy1.post(url=ad.url,headers=ad.header,json=body) |
28 | 29 | ||
29 | @unittest.case_mark(my.mark()) | 30 | @unittest.case_mark(my.mark()) |