Commit 3db6a86e9fa95c1a5b4cce1528c49d2c9f751fdb
1 parent
c9571dbf
buchong
Showing
1 changed file
with
38 additions
and
0 deletions
testcase/hg/tradingOrder/test_createAndTrade.py
0 → 100644
1 | +import unittest | ||
2 | +import urllib3 | ||
3 | +from commons.MySession import hg,my | ||
4 | +from commons.api.hg.transaction import createAndTrade | ||
5 | +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | ||
6 | +import commons.ConfigDB as db | ||
7 | +crat = createAndTrade() | ||
8 | + | ||
9 | +""" | ||
10 | +创建大客户订单 | ||
11 | +""" | ||
12 | + | ||
13 | +class test_createAndTrade(unittest.TestCase): | ||
14 | + "创建大客户订单" | ||
15 | + @classmethod | ||
16 | + def setUpClass(cls): | ||
17 | + pass | ||
18 | + def setUp(self): | ||
19 | + pass | ||
20 | + | ||
21 | + def test_createAndTrade_01(self): | ||
22 | + "创建大客户借款单" | ||
23 | + | ||
24 | + @unittest.case_mark(my.mark()) | ||
25 | + def test_vipCustomerLoan_details_01(self): | ||
26 | + "大客户借款-详情:选择指定大客户借款数据,点击查看" | ||
27 | + re = hg.post(url=crat.url, headers=crat.header, json=crat.body) | ||
28 | + print(re.json()) | ||
29 | + self.assertTrue("'操作成功'" in str(re.json()).replace(" ", "")) | ||
30 | + | ||
31 | + | ||
32 | + @classmethod | ||
33 | + def tearDownClass(cls): | ||
34 | + pass | ||
35 | + | ||
36 | + | ||
37 | +if __name__ == '__main__': | ||
38 | + unittest.main() |