tets_edit_org.py 563 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