Commit 9b211775b16fc37fd15970c2f926f6ad98f2592f
1 parent
389c1081
大客户订单查询
Showing
2 changed files
with
52 additions
and
0 deletions
commons/api/hg/transaction/listFixedPaid.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | ||
2 | +""" | ||
3 | +@Time : 2021/10/11 10:06 | ||
4 | +@Auth : wlm | ||
5 | +@File :listFixedPaid.py | ||
6 | +@IDE :PyCharm | ||
7 | +""" | ||
8 | +""" | ||
9 | +大客户模式——查询结算单 | ||
10 | +""" | ||
11 | + | ||
12 | +from commons import common as com | ||
13 | +from commons.MySession import hg | ||
14 | +class listFixedPaid(): | ||
15 | + | ||
16 | + def __init__(self): | ||
17 | + self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/tradingOrder/listFixedPaid" | ||
18 | + self.header ={ | ||
19 | + "UAP_accessToken":"demo", | ||
20 | + "UAP_refreshToken":"demo" | ||
21 | + } | ||
22 | + self.body = "" | ||
23 | + | ||
24 | + | ||
25 | +# lfp = listFixedPaid() | ||
26 | +# print(lfp.body) | ||
27 | +# re = hg.post(url = lfp.url,json = lfp.body,headers = lfp.header,proxies=hg.myproxies) | ||
28 | +# print(re.json()) | ||
29 | +# print(re.headers) | ||
0 | \ No newline at end of file | 30 | \ No newline at end of file |
testcase/hg/tradingOrder/test_listFixedPaid.py
0 → 100644
1 | +import unittest | ||
2 | +from commons import common as com | ||
3 | +from commons.MySession import my,hg | ||
4 | +from commons.api.hg.transaction.listFixedPaid import listFixedPaid | ||
5 | + | ||
6 | +lfp =listFixedPaid() | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | +class test_listFixedPaid(unittest.TestCase): | ||
11 | + "大客户交易订单查询" | ||
12 | + | ||
13 | + @unittest.case_mark(my.mark()) | ||
14 | + def test_listFixedPaid_01(self): | ||
15 | + "大客户交易订单查询" | ||
16 | + re = hg.post(url = lfp.url,headers = lfp.header,json = lfp.body,proxies = hg.myproxies) | ||
17 | + print(re.json()) | ||
18 | + self.assertEqual(re.status_code, 200) | ||
19 | + self.assertTrue("'操作成功'" in str(re.json()).replace(" ","")) | ||
20 | + | ||
21 | + | ||
22 | +if __name__ == '__main__': | ||
23 | + unittest.main() |