tets_edit_org.py
587 Bytes
from atdd.PcPost import PcPost
from tests.Staff_Management.Organization.public_org import PulbicOrg
# 编辑组织
class EditOrg(PcPost):
interfaceUrl = "/contact/Apicp/Department/EditQuery"
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
def test_edit_query(self):
# 随机取一个部门ID,判断业务正确性
dptId = PulbicOrg().get_random_dptId()
data = {
"department_id": dptId
}
result = self.PcPost(self.interfaceUrl,data)
print(result)
return result