Commit 4f99a95940f1cad5e0bfe4b4356fd09a68a51051

Authored by lixi
1 parent d7ab0697

更新进门称重的方法

commons/common.py
... ... @@ -118,8 +118,6 @@ def run_Name(name):
118 118  
119 119 def mylog(func):
120 120 def RebackTest(self):
121   - print(func.__name__)
122   - print(dir(func))
123   - # print(self)
  121 + log.info("{}".format(func.__name__))
124 122 return func(self)
125 123 return RebackTest
126 124 \ No newline at end of file
... ...
config/api/sy/userApi.py
... ... @@ -30,7 +30,7 @@ data={
30 30 "email": "shenyangtangchuan@diligrp.com",
31 31 "firmCode": "sy",
32 32 "id": 228,
33   - "lastLoginTime": "2021-08-04 15:50:24",
  33 + "lastLoginTime": "2021-08-05 16:23:14",
34 34 "metadata": {},
35 35 "modified": "2021-07-13 15:56:44",
36 36 "password": "DABF2BB8F4A3D0AAE5",
... ... @@ -67,7 +67,7 @@ data={
67 67 "email": "shenyangdagang@diligrp.com",
68 68 "firmCode": "sy",
69 69 "id": 320,
70   - "lastLoginTime": "2021-08-04 15:23:56",
  70 + "lastLoginTime": "2021-08-06 10:05:46",
71 71 "metadata": {},
72 72 "modified": "2021-07-13 15:56:44",
73 73 "password": "18965EB72C92A549DD",
... ...
testcase/weightBizBill/test_weighingServiceSave.py
... ... @@ -11,25 +11,27 @@ we=weighingServiceSave(sy1)
11 11 li=listCarType(sy1)
12 12  
13 13  
14   -@com.mylog
  14 +
15 15 class test_weighingServiceSave(unittest.TestCase):
16 16 "称重服务"
17 17  
  18 +
18 19 @classmethod
19 20 def setUpClass(cls):
20 21 pass
21 22  
22   -
23 23 def setUp(self) :
24 24 pass
25 25  
  26 + @com.mylog
26 27 @unittest.case_mark(my.mark())
27 28 def test_weighingServiceSave_01(self):
28 29 "称重服务:成功新增一条称重服务单"
29 30 body=we.body.copy()
30   - body["carTypeId"]=li.car_list()["data"][0]["id"]
31   - body["carTypeName"]=li.car_list()["data"][0]["carTypeName"]
32   - body["carTypeCode"]=li.car_list()["data"][0]["code"]
  31 + car=li.car_list()["data"]
  32 + body["carTypeId"]=car[0]["id"]
  33 + body["carTypeName"]=car[0]["carTypeName"]
  34 + body["carTypeCode"]=car[0]["code"]
33 35 re=sy1.post(url=we.url,headers=we.header,json=body)
34 36 print(re.json())
35 37 self.assertEqual(re.status_code, 200)
... ...