Commit c0ed441d3c755ff89b81068c9436864b74615a60

Authored by wenleiming
1 parent ca182f78

view

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