Commit 710fdaf8bd22b207e51fb79d5e5ff815ca10d0b4
1 parent
30db4e54
s
Showing
5 changed files
with
10 additions
and
7 deletions
testcase/heb/FeedbackCustomerController/test_fc_add.py
... | ... | @@ -19,7 +19,7 @@ class test_fc_add(unittest.TestCase): |
19 | 19 | pass |
20 | 20 | def setUp(self): |
21 | 21 | self.cardnb = db.mysql_selectOne('''SELECT card_no FROM `dili_account`.`account_user_card` WHERE state = 1 |
22 | - AND firm_id = '''+str(heb.user["sy_user01"]["firmId"])+''' ORDER BY id LIMIT 1''')[0] | |
22 | + AND firm_id = '''+str(heb.user["heb_user01"]["firmId"])+''' ORDER BY id LIMIT 1''')[0] | |
23 | 23 | def test_fc_add_01(self): |
24 | 24 | "新增返还人" |
25 | 25 | body = fc.body.replace("18828281176",ra.phone_number()).\ | ... | ... |
testcase/heb/FeedbackCustomerController/test_fc_edit.py
... | ... | @@ -31,7 +31,7 @@ class test_fc_edit(unittest.TestCase): |
31 | 31 | # # print(body) |
32 | 32 | # re = heb.post(url = fc.url, headers = fc.header, data = body.encode('utf-8'), proxies = my.proxies) |
33 | 33 | self.mesg = db.mysql_selectOne('''SELECT id,name,mobile,card_number |
34 | -FROM `dili_jmsf`.`feedback_customer` WHERE market_id = '''+str(heb.user["sy_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''') | |
34 | +FROM `dili_jmsf`.`feedback_customer` WHERE market_id = '''+str(heb.user["heb_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''') | |
35 | 35 | # print(self.mesg) |
36 | 36 | def test_fc_edit_01(self): |
37 | 37 | "修改返还人" | ... | ... |
testcase/heb/FeedbackCustomerController/test_fc_view.py
... | ... | @@ -22,7 +22,7 @@ class test_fc_view(unittest.TestCase): |
22 | 22 | def setUp(self): |
23 | 23 | # 获取数据:从MYSQL获取新增返还人的id号 |
24 | 24 | self.code = db.mysql_selectOne('''SELECT * FROM `dili_jmsf`.`feedback_customer` WHERE |
25 | - market_id = '''+str(heb.user["sy_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''')[0] | |
25 | + market_id = '''+str(heb.user["heb_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''')[0] | |
26 | 26 | |
27 | 27 | |
28 | 28 | # @unittest.case_mark(my.mark()) | ... | ... |
testcase/heb/FeedbackCustomerController/test_feedback_customer_disable.py
... | ... | @@ -18,7 +18,7 @@ class test_feedback_customer_disable(unittest.TestCase): |
18 | 18 | |
19 | 19 | def setUp(self): |
20 | 20 | self.ids = db.mysql_selectOne('''SELECT id FROM `dili_jmsf`.`feedback_customer` |
21 | - WHERE `status` = '1' and market_id = '''+str(heb.user["sy_user01"]["firmId"])+''' | |
21 | + WHERE `status` = '1' and market_id = '''+str(heb.user["heb_user01"]["firmId"])+''' | |
22 | 22 | ORDER BY `id` DESC LIMIT 1''')[0] |
23 | 23 | # print("查询出返还人id", self.id) |
24 | 24 | ... | ... |
testcase/heb/feedbackOrderController_settlementlist/test_feedbackOrderController_settlementlist.py
... | ... | @@ -16,19 +16,22 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase): |
16 | 16 | @classmethod |
17 | 17 | def setUpClass(cls): |
18 | 18 | pass |
19 | + | |
19 | 20 | def setUp(self): |
20 | - pass | |
21 | + self.idf = db.mysql_selectOne('''SELECT id FROM `dili_jmsf`.`feedback_customer` WHERE | |
22 | + `status` = '1' and market_id = ''' + str(heb.user["heb_user01"]["firmId"]) + ''' | |
23 | + ORDER BY `id` DESC LIMIT 1''')[0] | |
21 | 24 | |
22 | 25 | def test_feedbackOrderController_settlementlist_01(self): |
23 | 26 | "根据返还人和结算时间进行查询" |
24 | 27 | body = focsl.body.replace("2021-08-04 00:00:00", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\ |
25 | 28 | replace("2021-08-05 23:59:59", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")).\ |
26 | - replace("feedbackCustomerId=25", "feedbackCustomerId=26") | |
29 | + replace("feedbackCustomerId=25", "feedbackCustomerId="+str(self.idf)) | |
27 | 30 | # print(body) |
28 | 31 | re = heb.post(url=focsl.url, data=body, headers=focsl.header) |
29 | 32 | self.assertEqual(re.status_code, 200) |
30 | 33 | # print(re.json()) |
31 | - | |
34 | +1 | |
32 | 35 | @classmethod |
33 | 36 | def tearDownClass(cls): |
34 | 37 | pass | ... | ... |