lizhikun 4 months ago
parent
commit
af888b4429
2 changed files with 15 additions and 1 deletions
  1. 14 0
      cases/pc/登录功能/搜索功能/__st__.py
  2. 1 1
      lib/webapi.py

+ 14 - 0
cases/pc/登录功能/搜索功能/__st__.py

@@ -0,0 +1,14 @@
+from time import sleep
+
+from hytest import *
+from lib.webapi import apimgr
+def suite_setup():
+    INFO('切换用户身份到大会员权限的企业下')
+    apimgr.Identity_list(6)
+    apimgr.Identity_switch()
+    sleep(3)
+def suite_teardown():
+    INFO('切换用户身份到商机管理权限的企业下')
+    apimgr.Identity_list(1)
+    apimgr.Identity_switch()
+    sleep(3)

+ 1 - 1
lib/webapi.py

@@ -201,7 +201,7 @@ class APIMgr():
             city = []
             city = []
         if province is None:
         if province is None:
             province = []
             province = []
-        url = f"{cfg.target_host}/jyapi/jybx/buyer/eType/buyerList"
+        url = f"{cfg.target_host}/jyapi/jybx/buyer/mType/buyerList"
         data = {
         data = {
             "buyerName": buyerName,
             "buyerName": buyerName,
             "province": province,
             "province": province,