Commit 974f17aea0241d395a3e71462b210e429369d395

Authored by liujiqiang
2 parents 4c51d509 3d8caa3c

Merge remote-tracking branch 'origin/master' into master

... ... @@ -79,4 +79,4 @@ if __name__ == "__main__":
79 79 # 创建测试套,运行测试用例,生成报告
80 80 report = Run_Testcase(Create_Testcase_suite())
81 81 # 发送邮件
82   - Send_email(report)
83 82 \ No newline at end of file
  83 + # Send_email(report)
84 84 \ No newline at end of file
... ...
testcase/hg/createTradingOrder/__init__.py 0 → 100644
  1 +# -*- coding: utf-8 -*-
  2 +
  3 +# @Time : 2021/9/29 10:09
  4 +# @Author : Ljq
  5 +# @File : __init__.py.py
  6 +# @Software: PyCharm
  7 +
  8 +"""
  9 +
  10 +"""
... ...
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()
... ...