test_SettingUpdate.py
718 Bytes
from atdd.PcPost import PcPost
class SettingUpdate(PcPost):
interfaceUrl = "/Assistant/Apicp/Ranking/SettingUpdate"
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
# 更新排名筛选条件接口,排名筛选条件:1:角色,2:岗位;
def test_SettingUpdate_Role(self):
data = {
"rank_filter": 1 # 角色
}
result = self.PcPost(self.interfaceUrl, data)
print(result)
return result
# def test_SettingUpdate_Job(self):
# data = {
# "rank_filter": 2 # 岗位
# }
# result = self.PcPost(self.interfaceUrl, data)
# print(result)
# return result