Commit 892f2078196d65c5ef3a8f03227147a3c6ddef18

Authored by wenleiming
1 parent b5f5a513

添加断言

testcase/hg/tradingOrder/test_listFixedPaid.py
1 1 import unittest
  2 +import urllib3
  3 +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
2 4 from commons import common as com
3 5 from commons.MySession import my,hg
4 6 from commons.api.hg.transaction.listFixedPaid import listFixedPaid
5 7  
6   -lfp =listFixedPaid()
  8 +lfp = listFixedPaid()
7 9  
8 10  
9 11  
... ... @@ -17,6 +19,7 @@ class test_listFixedPaid(unittest.TestCase):
17 19 print(re.json())
18 20 self.assertEqual(re.status_code, 200)
19 21 self.assertTrue("'操作成功'" in str(re.json()).replace(" ",""))
  22 + self.assertEqual(re.status_code, 200)
20 23  
21 24  
22 25 if __name__ == '__main__':
... ...