Commit 05d80b2784390aa69901df7a6fb6e9b96f0037c6
1 parent
0d214637
明细查询优化
Showing
1 changed file
with
24 additions
and
3 deletions
testcase/feedbackOrderController_settlementlist/feedbackOrderController_settlementlist.py
1 | 1 | import unittest |
2 | +import urllib3 | |
3 | +from commons.MySession import my,sy1 | |
4 | +from commons.api.feedbackOrderController_settlementlist import feedbackOrderController_settlementlist | |
5 | +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
6 | +import commons.ConfigDB as db | |
7 | +focsl = feedbackOrderController_settlementlist() | |
2 | 8 | |
9 | +class test_feedbackOrderController_settlementlist(unittest.TestCase): | |
10 | + "已结账明细查询" | |
11 | + @classmethod | |
12 | + def setUpClass(cls): | |
13 | + pass | |
14 | + def setUp(self): | |
15 | + pass | |
3 | 16 | |
4 | -class MyTestCase(unittest.TestCase): | |
5 | - def test_something(self): | |
6 | - self.assertEqual(True, False) | |
17 | + def test_feedbackOrderController_settlementlist_01(self): | |
18 | + body = focsl.body.replace("2021-08-04 00:00:00", "2021-08-05 00:00:00")\ | |
19 | + .replace("2021-08-05 23:59:59", "2021-08-06 23:59:59")\ | |
20 | + .replace("feedbackCustomerId=25", "feedbackCustomerId=26") | |
21 | + | |
22 | + re = sy1.post(url=focsl.url, data=body, headers=focsl.header,proxies=my.myproxies) | |
23 | + print(re.json()) | |
24 | + | |
25 | + @classmethod | |
26 | + def tearDownClass(cls): | |
27 | + pass | |
7 | 28 | |
8 | 29 | |
9 | 30 | if __name__ == '__main__': | ... | ... |