Commit 5916884f authored by 陈雪's avatar 陈雪

发布商品选择类目

parent 350a88c6
import path_setting
from in_common.base_request import BaseRequest
class web_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.ACCOUNT_URL)
def account_unreadbadgecount(self) :
return self.api_send(self.data["account_unreadbadgecount"])
if __name__ == '__main__':
print(web_request().account_unreadbadgecount())
account_unreadbadgecount:
method: get
url: /api/web/account/unread_badge_count
param: {}
data:
phone_num: ${phone_num}
vfc_code: ${vfc_code}
face_token: ${face_token}
json: {}
isLogin: 1
\ No newline at end of file
......@@ -28,6 +28,9 @@ SERVICE_REVIEW_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_d
#医生后台-新商品审核-撤回审核
SERVICEREVIEW_OPTION_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "servicereview_option.yaml")
#医生后台-发布商品选择类目
ACCOUNT_URL=os.path.join(BASE_DIR, "backend_auto/all_doctor_api", "web_request.yaml")
ACCOUNT_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "account_unreadbadgecount.yaml")
#搜索首页-热门搜索
KEYWORDS_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "search_request.yaml")
......
import pytest
import path_setting
from all_doctor_api.web_request import web_request
from ids_list import get_ids
from in_common.base_request import BaseRequest
class TestAccountUnreadbadgecount:
account_unreadbadgecount = BaseRequest().api_load(path_setting.ACCOUNT_DATA)
AccountUnreadbadgecount_case, AccountUnreadbadgecount_data = get_ids(account_unreadbadgecount, "account_unreadbadgecount")
print("-----",account_unreadbadgecount)
@pytest.mark.parametrize("param",AccountUnreadbadgecount_data,ids=AccountUnreadbadgecount_case)
def test_AccountUnreadbadgecount(self,param):
r = web_request().account_unreadbadgecount()
print("======",r)
if r["error"] == 0:
assert r["error"] == param["assert"]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
\ No newline at end of file
account_unreadbadgecount:
-
case: "发布商品-选择类目跳转发布商品页面"
assert: 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment