@@ -0,0 +1,16 @@
+from hytest import *
+from lib.webapi import apimgr
+
+class c1:
+ #测试用例名称
+ name='修改采购单位类型设置'
+ #测试步骤
+ def teststeps(self):
+ INFO('测试步骤')
+ STEP(1,'第一步调用函数') #会出现在测试报告中
+ r = apimgr.entnichenew_buyesclass_update()
+ res = r.json()
+ actural = res['error_code']
+ STEP(2,'第二步设置检查点')
+ #设置检查点
+ CHECK_POINT('检查采购单位类型设置是否正常',actural == 0)
@@ -1164,6 +1164,21 @@ class APIMgr():
response = self.s.post(f"{cfg.target_host}/front/dataExport/sendMailVerify",headers = headers , data = data)
return response
+ # 修改采购单位类型设置
+ def entnichenew_buyesclass_update(self):
+ headers = GSTORE['headers']
+ s = GSTORE['s']
+ json = {
+ "buyer": [
+ "法院",
+ "发改"
+ ],
+ "identity": "ent"
+ }
+ response = self.s.post(f"{cfg.target_host}/entnicheNew/subscribe/area/get", headers=headers,json=json)
+ return response
apimgr = APIMgr()