Commit a0e72c42389cc99716e8b0041678fad27c747f75

Authored by lixi
2 parents 9fa20e3d c0ed441d

Merge remote-tracking branch 'origin/master'

testcase/FeedbackCustomerController/test_fc_view.py
@@ -25,7 +25,7 @@ class test_fc_view(unittest.TestCase): @@ -25,7 +25,7 @@ class test_fc_view(unittest.TestCase):
25 print("查询出返还人id", self.code) 25 print("查询出返还人id", self.code)
26 26
27 # @unittest.case_mark(my.mark()) 27 # @unittest.case_mark(my.mark())
28 - def test_doAudit_01(self): 28 + def test_fc_view_01(self):
29 "查看返还人" 29 "查看返还人"
30 # 请求url中的需要替换为新增返还人的id 30 # 请求url中的需要替换为新增返还人的id
31 url = vi.url.replace("40", str(self.code)) 31 url = vi.url.replace("40", str(self.code))
@@ -37,7 +37,6 @@ class test_fc_view(unittest.TestCase): @@ -37,7 +37,6 @@ class test_fc_view(unittest.TestCase):
37 # 断言响应数据中是否存在期望字符串 37 # 断言响应数据中是否存在期望字符串
38 self.assertTrue('关联交费卡号' in str(re.text)) 38 self.assertTrue('关联交费卡号' in str(re.text))
39 39
40 - return re  
41 40
42 @classmethod 41 @classmethod
43 def tearDownClass(cls): 42 def tearDownClass(cls):
testcase/FeedbackCustomerController/test_feedback_customer_query.py
@@ -16,7 +16,7 @@ class test_feedback_customer_query(unittest.TestCase): @@ -16,7 +16,7 @@ class test_feedback_customer_query(unittest.TestCase):
16 body = fcq.body.replace("史芳", "孟莹").replace("2021-07-02 00:00:00","\ 16 body = fcq.body.replace("史芳", "孟莹").replace("2021-07-02 00:00:00","\
17 2021-08-02 00:00:00").replace("2021-08-03 23:59:59", "2021-08-08 23:59:59") 17 2021-08-02 00:00:00").replace("2021-08-03 23:59:59", "2021-08-08 23:59:59")
18 18
19 - re = sy1.post(url = fcq.url, data = body.encode('utf-8'),headers = fcq.header,proxies=my.myproxies) 19 + re = sy1.post(url = fcq.url, data = body.encode('utf-8'),headers = fcq.header)
20 print(re.headers) 20 print(re.headers)
21 print(re.json()) 21 print(re.json())
22 self.assertTrue("孟莹" in str(re.json())) 22 self.assertTrue("孟莹" in str(re.json()))
testcase/FeedbackOrderController/test_feedback_order_settlement_query.py
@@ -16,11 +16,10 @@ class test_feedback_order_settlement_query(unittest.TestCase): @@ -16,11 +16,10 @@ class test_feedback_order_settlement_query(unittest.TestCase):
16 body = fosq.body.replace("feedbackCustomerId=25", "feedbackCustomerId=16").replace("2021-07-22 00:00:00", "\ 16 body = fosq.body.replace("feedbackCustomerId=25", "feedbackCustomerId=16").replace("2021-07-22 00:00:00", "\
17 2021-07-03 00:00:00").replace("2021-08-03 23:59:59", "2021-08-03 23:59:59") 17 2021-07-03 00:00:00").replace("2021-08-03 23:59:59", "2021-08-03 23:59:59")
18 18
19 - re = sy1.post(url = fosq.url, data = body,headers = fosq.header,proxies=my.myproxies) 19 + re = sy1.post(url = fosq.url, data = body,headers = fosq.header)
20 print(re.headers) 20 print(re.headers)
21 print(re.json()) 21 print(re.json())
22 self.assertTrue("新爱心园婚介所的总公司" in str(re.json())) 22 self.assertTrue("新爱心园婚介所的总公司" in str(re.json()))
23 - return re  
24 23
25 @classmethod 24 @classmethod
26 def tearDownClass(cls): 25 def tearDownClass(cls):
testcase/feedbackOrderController_settlementlist/test_feedbackOrderController_settlementlist.py
@@ -19,7 +19,7 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase): @@ -19,7 +19,7 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase):
19 .replace("2021-08-05 23:59:59", "2021-08-06 23:59:59")\ 19 .replace("2021-08-05 23:59:59", "2021-08-06 23:59:59")\
20 .replace("feedbackCustomerId=25", "feedbackCustomerId=26") 20 .replace("feedbackCustomerId=25", "feedbackCustomerId=26")
21 21
22 - re = sy1.post(url=focsl.url, data=body, headers=focsl.header,proxies=my.myproxies) 22 + re = sy1.post(url=focsl.url, data=body, headers=focsl.header)
23 print(re.json()) 23 print(re.json())
24 24
25 @classmethod 25 @classmethod