test_createAndTrade.py 986 Bytes
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()