Commit d1bd1cdf1d1e2756a31156e91889770db6bc1e90
1 parent
acbeef91
已结账明细
Showing
1 changed file
with
23 additions
and
3 deletions
testcase/feedbackOrderController_settlementlist/feedbackOrderController_querySumAmount.py
1 | import unittest | 1 | import unittest |
2 | +import urllib3 | ||
3 | +from commons.MySession import sy1 | ||
4 | +from commons.api.feedbackOrderController_querySumAmount import querySumAmount | ||
5 | +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | ||
6 | +qsa = querySumAmount() | ||
2 | 7 | ||
8 | +class test_feedbackOrderController_querySumAmount(unittest.TestCase): | ||
9 | + "已结账明细查询" | ||
10 | + @classmethod | ||
11 | + def setUpClass(cls): | ||
12 | + pass | ||
13 | + def setUp(self): | ||
14 | + pass | ||
3 | 15 | ||
4 | -class MyTestCase(unittest.TestCase): | ||
5 | - def test_something(self): | ||
6 | - self.assertEqual(True, False) | 16 | + def test_feedbackOrderController_querySumAmount_01(self): |
17 | + body = qsa.body.replace("2021-07-05 00:00:00", "2021-08-03 00:00:00")\ | ||
18 | + .replace("2021-08-05 09:46:25", "2021-08-10 23:59:59") | ||
19 | + | ||
20 | + re = sy1.post(url=qsa.url, data=body, headers=qsa.header) | ||
21 | + self.assertEqual(re.status_code, 200) | ||
22 | + # print(re.json()) | ||
23 | + | ||
24 | + @classmethod | ||
25 | + def tearDownClass(cls): | ||
26 | + pass | ||
7 | 27 | ||
8 | 28 | ||
9 | if __name__ == '__main__': | 29 | if __name__ == '__main__': |