test_changeOrder.py
575 Bytes
from atdd.PcPost import PcPost
from tests.Staff_Management.Organization.public_org import PulbicOrg
class ChangeOrder(PcPost):
interfaceUrl = "/Contact/Apicp/Department/ChangeOrder"
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
def test_changeOrder(self):
# 随机取一个部门
dptId = PulbicOrg().get_random_dptId()
data = {
"department_id": dptId,
"order":12
}
result = self.PcPost(self.interfaceUrl,data)
print(result)
return result