Commit 0693c2a6c8e9281ba767139ab7feaa5bb68045f9

Authored by lixi
1 parent 22f4685d

上传用例

testcase/hg/createTradingOrder/test_createTradingOrder.py 0 → 100644
  1 +import unittest
  2 +import urllib3
  3 +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
  4 +from commons.MySession import hg,my
  5 +from commons import ConfigDB as db
  6 +from commons.api.hg.transaction.createAndTrade import createAndTrade
  7 +from commons.basic.registerRecord_save import registerRecord_save
  8 +creat = createAndTrade()
  9 +r = registerRecord_save()
  10 +
  11 +
  12 +"""
  13 +创建交易单
  14 +"""
  15 +
  16 +class test_createTradingOrder(unittest.TestCase):
  17 + "创建交易单"
  18 + @classmethod
  19 + def setUpClass(cls):
  20 + pass
  21 +
  22 +
  23 + def test_createTradingOrder_01(self):
  24 + "大客户创建订单"
  25 + # body = creat.body.copy()
  26 + # body["orderItemList"][0]["batchCode"] = self.batch
  27 + # print("创建订单body",body)
  28 + # re1 = hg.post(url = creat.url, headers = creat.header, json = body)
  29 + # print(re1.json())
  30 + # self.assertEqual(re1.status_code, 200)
  31 + # self.assertTrue("'操作成功'" in str(re1.json()).replace(" ", ""))
  32 + print(1111)
  33 +
  34 +if __name__ == '__main__':
  35 + unittest.main()
... ...