Commit edcdb85b8ea1d7ffd6f816843f0836efa3388199
1 parent
1ffc6b4d
更新进门称重的方法
Showing
2 changed files
with
4 additions
and
4 deletions
commons/MySession.py
testcase/CZFW/test_weightBizBill_doRefund.py
... | ... | @@ -21,9 +21,10 @@ class test_weightBizBill_doRefund(unittest.TestCase): |
21 | 21 | def setUp(self): |
22 | 22 | "数据准备:新增一条称重单" |
23 | 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 | 28 | self.re=sy1.post(url=ad.url,headers=ad.header,json=body) |
28 | 29 | |
29 | 30 | @unittest.case_mark(my.mark()) | ... | ... |