test_detail_mem.py
605 Bytes
import unittest
from atdd.PcPost import PcPost
class MemDetail(PcPost):
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
# 返回新增员工字段信息接口
def test_memdetail(self):
url = '/contact/Apicp/User/AttributeInfo'
data = {
}
result = self.PcPost(url, data)
print('接口地址:' + self.host + self.domain + url)
self.assertEqual('ok', result['errmsg'], msg=result['errmsg']) # limit判断? 判断通过打印?
# print(result)
if __name__ == '__main__':
unittest.main()