Commit d6500e488f428be98644c351f7b9ebeb0d1c82ae

Authored by wenleiming
1 parent a0e72c42

sdf

testcase/FeedbackCustomerController/test_feedback_customer_disable.py
@@ -13,11 +13,11 @@ class test_feedback_customer_disable(unittest.TestCase): @@ -13,11 +13,11 @@ class test_feedback_customer_disable(unittest.TestCase):
13 pass 13 pass
14 14
15 def setUp(self): 15 def setUp(self):
16 - self.id = db.mysql_selectOne("SELECT * FROM `dili_jmsf`.`feedback_customer` WHERE `status` = '1' ORDER BY `id` DESC LIMIT 1")[0]  
17 - print("查询出返还人id", self.id) 16 + self.ids = db.mysql_selectOne("SELECT id FROM `dili_jmsf`.`feedback_customer` WHERE `status` = '1' ORDER BY `id` DESC LIMIT 1")[0]
  17 + # print("查询出返还人id", self.id)
18 18
19 def test_feedback_customer_disable_01(self): 19 def test_feedback_customer_disable_01(self):
20 - url = fcd.url.replace("44", str(self.id)) 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) 22 print(re.headers)
23 print(re.json()) 23 print(re.json())
testcase/FeedbackCustomerController/test_feedback_customer_enable.py
1 import unittest 1 import unittest
2 import urllib3 2 import urllib3
3 -from commons.MySession import sy1 3 +from commons.MySession import my,sy1
4 from commons.api.feedback_customer_enable import feedback_customer_enable 4 from commons.api.feedback_customer_enable import feedback_customer_enable
  5 +from commons.api.feedback_customer_disable import feedback_customer_disable
5 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 6 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
6 fce = feedback_customer_enable() 7 fce = feedback_customer_enable()
  8 +fcd = feedback_customer_disable
7 import commons.ConfigDB as db 9 import commons.ConfigDB as db
8 10
9 class test_feedback_customer_enable(unittest.TestCase): 11 class test_feedback_customer_enable(unittest.TestCase):
@@ -13,11 +15,11 @@ class test_feedback_customer_enable(unittest.TestCase): @@ -13,11 +15,11 @@ class test_feedback_customer_enable(unittest.TestCase):
13 pass 15 pass
14 16
15 def setUp(self): 17 def setUp(self):
16 - self.id = db.mysql_selectOne("SELECT * FROM `dili_jmsf`.`feedback_customer` WHERE `status` = '2' ORDER BY `id` DESC LIMIT 1")[0]  
17 - print(self.id) 18 + self.ids = db.mysql_selectOne("SELECT id FROM `dili_jmsf`.`feedback_customer` WHERE `status` = '2' ORDER BY `id` DESC LIMIT 1")[0]
  19 + print(self.ids)
18 def test_feedback_customer_enable_01(self): 20 def test_feedback_customer_enable_01(self):
19 21
20 - url = fce.url.replace("49",str(self.id)) 22 + url = fce.url.replace("49",str(self.ids))
21 re = sy1.post(url = url, headers = fce.header) 23 re = sy1.post(url = url, headers = fce.header)
22 print(fce.url) 24 print(fce.url)
23 print(re.headers) 25 print(re.headers)
testcase/FeedbackOrderController/test_feedback_order_settlement.py
@@ -31,7 +31,6 @@ class test_feedback_order_settlement(unittest.TestCase): @@ -31,7 +31,6 @@ class test_feedback_order_settlement(unittest.TestCase):
31 replace("billIds=3621","billIds=3493").\ 31 replace("billIds=3621","billIds=3493").\
32 replace("settledAmounts=2","settledAmounts=2") 32 replace("settledAmounts=2","settledAmounts=2")
33 33
34 - print(body)  
35 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'))
36 print(re.headers) 35 print(re.headers)
37 36