瀏覽代碼

修改采购单位类型设置

yuanyuan 6 月之前
父節點
當前提交
09465d53ff
共有 2 個文件被更改,包括 31 次插入0 次删除
  1. 16 0
      cases/pc/登录功能/订阅/entnichenew_buyerclass.py
  2. 15 0
      lib/webapi.py

+ 16 - 0
cases/pc/登录功能/订阅/entnichenew_buyerclass.py

@@ -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)

+ 15 - 0
lib/webapi.py

@@ -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()