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