Commit d6500e488f428be98644c351f7b9ebeb0d1c82ae
1 parent
a0e72c42
sdf
Showing
3 changed files
with
9 additions
and
8 deletions
testcase/FeedbackCustomerController/test_feedback_customer_disable.py
... | ... | @@ -13,11 +13,11 @@ class test_feedback_customer_disable(unittest.TestCase): |
13 | 13 | pass |
14 | 14 | |
15 | 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 | 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 | 21 | re = sy1.post(url=url, headers=fcd.header) |
22 | 22 | print(re.headers) |
23 | 23 | print(re.json()) | ... | ... |
testcase/FeedbackCustomerController/test_feedback_customer_enable.py
1 | 1 | import unittest |
2 | 2 | import urllib3 |
3 | -from commons.MySession import sy1 | |
3 | +from commons.MySession import my,sy1 | |
4 | 4 | from commons.api.feedback_customer_enable import feedback_customer_enable |
5 | +from commons.api.feedback_customer_disable import feedback_customer_disable | |
5 | 6 | urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) |
6 | 7 | fce = feedback_customer_enable() |
8 | +fcd = feedback_customer_disable | |
7 | 9 | import commons.ConfigDB as db |
8 | 10 | |
9 | 11 | class test_feedback_customer_enable(unittest.TestCase): |
... | ... | @@ -13,11 +15,11 @@ class test_feedback_customer_enable(unittest.TestCase): |
13 | 15 | pass |
14 | 16 | |
15 | 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 | 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 | 23 | re = sy1.post(url = url, headers = fce.header) |
22 | 24 | print(fce.url) |
23 | 25 | print(re.headers) | ... | ... |
testcase/FeedbackOrderController/test_feedback_order_settlement.py
... | ... | @@ -31,7 +31,6 @@ class test_feedback_order_settlement(unittest.TestCase): |
31 | 31 | replace("billIds=3621","billIds=3493").\ |
32 | 32 | replace("settledAmounts=2","settledAmounts=2") |
33 | 33 | |
34 | - print(body) | |
35 | 34 | re = sy1.post(url = fos.url, headers = fos.header, data = body.encode('utf-8')) |
36 | 35 | print(re.headers) |
37 | 36 | ... | ... |