test_customer_getByKeyword.py
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import unittest
from commons import common as com
from commons.MySession import my,hg
from commons.api.hg.BackCollection.customer_getByKeyword import customer_getByKeyword
c=customer_getByKeyword()
from func_timeout import func_set_timeout
import time
import func_timeout
class test_customer_getByKeyword(unittest.TestCase):
"杭果市场-交易管理-后台收款"
# @unittest.case_mark(my.mark())
# def test_customer_getByKeyword_01(self):
# "交易管理-后台收款:在客户信息页面输入正确的客户名称并查询"
# #请求
# re=hg.post(url=c.url,headers=c.header)
# print(re.json())
# self.assertTrue("'success':True" in str(re.json()).replace(" ",""))
# self.assertTrue("拜登" in str(re.json()).replace(" ",""))
@func_set_timeout(1)
def test1(self):
time.sleep(3)
@func_set_timeout(1)
def test2(self):
time.sleep(3)
if __name__ == "__main__":
unittest.main(verbosity=2)
# com.run_one(test_generalCustomerLoan("test_generalCustomerLoan_01_save"))