Commit 9f0ac1ea96154b6190b8c462e50b852fb1daccf1

Authored by wenleiming
1 parent 454a2eb1

删除 打印

commons/api/feedback_customer_query.py
@@ -62,7 +62,7 @@ class feedback_customer_query(): @@ -62,7 +62,7 @@ class feedback_customer_query():
62 self.url = feedback_customer_query.url.replace("http://test.", com.get_global_config("global_data", "environment", "en")) 62 self.url = feedback_customer_query.url.replace("http://test.", com.get_global_config("global_data", "environment", "en"))
63 self.header = feedback_customer_query.header 63 self.header = feedback_customer_query.header
64 self.body = feedback_customer_query.body 64 self.body = feedback_customer_query.body
65 - print(self.body) 65 + # print(self.body)
66 # feedback_customer_query = urllib.parse.urlencode(feedback_customer_query()) 66 # feedback_customer_query = urllib.parse.urlencode(feedback_customer_query())
67 67
68 # fcq = feedback_customer_query 68 # fcq = feedback_customer_query
commons/api/feedback_order_settlement_query.py
@@ -38,7 +38,7 @@ class feedback_order_settlement_query(): @@ -38,7 +38,7 @@ class feedback_order_settlement_query():
38 self.url = feedback_order_settlement_query.url.replace("http://test.", com.get_global_config("global_data", "environment", "en")) 38 self.url = feedback_order_settlement_query.url.replace("http://test.", com.get_global_config("global_data", "environment", "en"))
39 self.header = feedback_order_settlement_query.header 39 self.header = feedback_order_settlement_query.header
40 self.body = feedback_order_settlement_query.body 40 self.body = feedback_order_settlement_query.body
41 - print(self.body) 41 + # print(self.body)
42 42
43 # fosq = feedback_order_settlement_query 43 # fosq = feedback_order_settlement_query
44 # print(fosq.body) 44 # print(fosq.body)
testcase/FeedbackCustomerController/test_fc_add.py
@@ -18,10 +18,10 @@ class test_fc_add(unittest.TestCase): @@ -18,10 +18,10 @@ class test_fc_add(unittest.TestCase):
18 body = fc.body.replace("888810054630","888810054630").replace("你好",ra.name()).replace("relation\ 18 body = fc.body.replace("888810054630","888810054630").replace("你好",ra.name()).replace("relation\
19 CardTemp=888810054630","relationCardTemp=888810054630").replace("relationalCard[0].cardNumber\ 19 CardTemp=888810054630","relationCardTemp=888810054630").replace("relationalCard[0].cardNumber\
20 =888810054630","relationalCard[0].cardNumber=888810054630") 20 =888810054630","relationalCard[0].cardNumber=888810054630")
21 - print(body) 21 + # print(body)
22 re = sy1.post(url=fc.url, headers=fc.header, data=body.encode('utf-8')) 22 re = sy1.post(url=fc.url, headers=fc.header, data=body.encode('utf-8'))
23 - print(re.headers)  
24 - print(re.json()) 23 + # print(re.headers)
  24 + # print(re.json())
25 self.assertTrue("操作成功" in str(re.json())) 25 self.assertTrue("操作成功" in str(re.json()))
26 return re 26 return re
27 27
testcase/FeedbackCustomerController/test_fc_edit.py
@@ -17,10 +17,10 @@ class test_fc_edit(unittest.TestCase): @@ -17,10 +17,10 @@ class test_fc_edit(unittest.TestCase):
17 17
18 body = fc.body.replace("relationalCard[0].cardNumber=210720131533",\ 18 body = fc.body.replace("relationalCard[0].cardNumber=210720131533",\
19 "relationalCard[0].cardNumber=210720125142") 19 "relationalCard[0].cardNumber=210720125142")
20 - print(body) 20 + # print(body)
21 re = sy1.post(url=fc.url, headers=fc.header, data=body.encode('utf-8')) 21 re = sy1.post(url=fc.url, headers=fc.header, data=body.encode('utf-8'))
22 - print(re.headers)  
23 - print(re.json()) 22 + # print(re.headers)
  23 + # print(re.json())
24 self.assertTrue("操作成功" in str(re.json())) 24 self.assertTrue("操作成功" in str(re.json()))
25 25
26 @classmethod 26 @classmethod
testcase/FeedbackCustomerController/test_fc_view.py
@@ -22,7 +22,7 @@ class test_fc_view(unittest.TestCase): @@ -22,7 +22,7 @@ class test_fc_view(unittest.TestCase):
22 my.post(url=ad.url, headers=ad.header, data=ad.body.encode('utf-8')) 22 my.post(url=ad.url, headers=ad.header, data=ad.body.encode('utf-8'))
23 # 获取数据:从MYSQL获取新增返还人的id号 23 # 获取数据:从MYSQL获取新增返还人的id号
24 self.code = db.mysql_selectOne("SELECT * FROM `dili_jmsf`.`feedback_customer` ORDER BY `id` DESC LIMIT 1")[0] 24 self.code = db.mysql_selectOne("SELECT * FROM `dili_jmsf`.`feedback_customer` ORDER BY `id` DESC LIMIT 1")[0]
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_fc_view_01(self): 28 def test_fc_view_01(self):
@@ -33,7 +33,7 @@ class test_fc_view(unittest.TestCase): @@ -33,7 +33,7 @@ class test_fc_view(unittest.TestCase):
33 # 进行GET请求 33 # 进行GET请求
34 re = sy1.get(url=url, headers=vi.header) 34 re = sy1.get(url=url, headers=vi.header)
35 # 打印请求结果(可删除该代码,一般只在调试时使用) 35 # 打印请求结果(可删除该代码,一般只在调试时使用)
36 - print(re.text) 36 + # print(re.text)
37 # 断言响应数据中是否存在期望字符串 37 # 断言响应数据中是否存在期望字符串
38 self.assertTrue('关联交费卡号' in str(re.text)) 38 self.assertTrue('关联交费卡号' in str(re.text))
39 39
testcase/FeedbackCustomerController/test_feedback_customer_disable.py
@@ -19,8 +19,8 @@ class test_feedback_customer_disable(unittest.TestCase): @@ -19,8 +19,8 @@ class test_feedback_customer_disable(unittest.TestCase):
19 def test_feedback_customer_disable_01(self): 19 def test_feedback_customer_disable_01(self):
20 url = fcd.url.replace("44", str(self.ids)) 20 url = fcd.url.replace("44", str(self.ids))
21 re = sy1.post(url=url, headers=fcd.header) 21 re = sy1.post(url=url, headers=fcd.header)
22 - print(re.headers)  
23 - print(re.json()) 22 + # print(re.headers)
  23 + # print(re.json())
24 self.assertTrue("操作成功" in str(re.json())) 24 self.assertTrue("操作成功" in str(re.json()))
25 25
26 @classmethod 26 @classmethod
testcase/FeedbackCustomerController/test_feedback_customer_enable.py
@@ -21,9 +21,9 @@ class test_feedback_customer_enable(unittest.TestCase): @@ -21,9 +21,9 @@ class test_feedback_customer_enable(unittest.TestCase):
21 21
22 url = fce.url.replace("49",str(self.ids)) 22 url = fce.url.replace("49",str(self.ids))
23 re = sy1.post(url = url, headers = fce.header) 23 re = sy1.post(url = url, headers = fce.header)
24 - print(fce.url)  
25 - print(re.headers)  
26 - print(re.json()) 24 + # print(fce.url)
  25 + # print(re.headers)
  26 + # print(re.json())
27 self.assertTrue("操作成功" in str(re.json())) 27 self.assertTrue("操作成功" in str(re.json()))
28 @classmethod 28 @classmethod
29 def tearDownClass(cls): 29 def tearDownClass(cls):
testcase/FeedbackCustomerController/test_feedback_customer_query.py
@@ -17,8 +17,8 @@ class test_feedback_customer_query(unittest.TestCase): @@ -17,8 +17,8 @@ class test_feedback_customer_query(unittest.TestCase):
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) 19 re = sy1.post(url = fcq.url, data = body.encode('utf-8'),headers = fcq.header)
20 - print(re.headers)  
21 - print(re.json()) 20 + # print(re.headers)
  21 + # print(re.json())
22 self.assertTrue("孟莹" in str(re.json())) 22 self.assertTrue("孟莹" in str(re.json()))
23 23
24 @classmethod 24 @classmethod
testcase/FeedbackOrderController/test_feedback_order_settlement.py
@@ -32,9 +32,9 @@ class test_feedback_order_settlement(unittest.TestCase): @@ -32,9 +32,9 @@ class test_feedback_order_settlement(unittest.TestCase):
32 replace("settledAmounts=2","settledAmounts=2") 32 replace("settledAmounts=2","settledAmounts=2")
33 33
34 re = sy1.post(url = fos.url, headers = fos.header, data = body.encode('utf-8')) 34 re = sy1.post(url = fos.url, headers = fos.header, data = body.encode('utf-8'))
35 - print(re.headers) 35 + # print(re.headers)
36 36
37 - print(re.json()) 37 + # print(re.json())
38 self.assertTrue("操作成功" in str(re.json())) 38 self.assertTrue("操作成功" in str(re.json()))
39 return re 39 return re
40 40
testcase/FeedbackOrderController/test_feedback_order_settlement_query.py
@@ -17,8 +17,8 @@ class test_feedback_order_settlement_query(unittest.TestCase): @@ -17,8 +17,8 @@ class test_feedback_order_settlement_query(unittest.TestCase):
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) 19 re = sy1.post(url = fosq.url, data = body,headers = fosq.header)
20 - print(re.headers)  
21 - print(re.json()) 20 + # print(re.headers)
  21 + # print(re.json())
22 self.assertTrue("新爱心园婚介所的总公司" in str(re.json())) 22 self.assertTrue("新爱心园婚介所的总公司" in str(re.json()))
23 23
24 @classmethod 24 @classmethod
testcase/feedbackOrderController_settlementlist/test_feedbackOrderController_settlementlist.py
@@ -20,7 +20,7 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase): @@ -20,7 +20,7 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase):
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) 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
26 def tearDownClass(cls): 26 def tearDownClass(cls):