Commit c44cc7c188d980b6e6f1388e2e49ea05fde7c869

Authored by lixi
1 parent 199c94fb

更新称重服务的用例依赖接口

commons/api/weighingServiceSave.py
@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
2 # -*- coding: UTF-8 -*- 2 # -*- coding: UTF-8 -*-
3 import urllib3 3 import urllib3
4 from commons import common as com 4 from commons import common as com
5 -from commons.MySession import my,sy1,sy2  
6 -from commons.api.duplicateToken import duplicateToken 5 +from commons.MySession import sy1
  6 +from commons.basic.duplicateToken import duplicateToken
7 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 7 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
8 du=duplicateToken() 8 du=duplicateToken()
9 9
commons/api/duplicateToken.py renamed to commons/basic/duplicateToken.py
testcase/weightBizBill/test_weighingServiceSave.py
@@ -16,7 +16,7 @@ class test_weighingServiceSave(unittest.TestCase): @@ -16,7 +16,7 @@ class test_weighingServiceSave(unittest.TestCase):
16 16
17 @unittest.case_mark(my.mark()) 17 @unittest.case_mark(my.mark())
18 def test_weighingServiceSave_01(self): 18 def test_weighingServiceSave_01(self):
19 - "称重服务-称重服务:成功新增一条称重服务单" 19 + "称重服务:成功新增一条称重服务单"
20 body=we.body.copy() 20 body=we.body.copy()
21 body["carTypeId"]=li.car_list()["data"][0]["id"] 21 body["carTypeId"]=li.car_list()["data"][0]["id"]
22 body["carTypeName"]=li.car_list()["data"][0]["carTypeName"] 22 body["carTypeName"]=li.car_list()["data"][0]["carTypeName"]