test_createTradingOrder.py 1 KB
import unittest
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
from commons.MySession import hg,my
from commons import ConfigDB as db
from commons.api.hg.transaction.createAndTrade import createAndTrade
from commons.basic.registerRecord_save import registerRecord_save
creat = createAndTrade()
r = registerRecord_save()


"""
创建交易单
"""

class test_createTradingOrder(unittest.TestCase):
    "创建交易单"
    @classmethod
    def setUpClass(cls):
        pass


    def test_createTradingOrder_01(self):
        "大客户创建订单"
        # body = creat.body.copy()
        # body["orderItemList"][0]["batchCode"] = self.batch
        # print("创建订单body",body)
        # re1 = hg.post(url = creat.url, headers = creat.header, json = body)
        # print(re1.json())
        # self.assertEqual(re1.status_code, 200)
        # self.assertTrue("'操作成功'" in str(re1.json()).replace(" ", ""))
        print(1111)

if __name__ == '__main__':
    unittest.main()