Commit 7d0c978c authored by 张淑琴's avatar 张淑琴

服务资源

parent 69804cc2
......@@ -63,6 +63,8 @@ class web_request(BaseRequest):
# return self.api_send(self.ACCOUNT_URL["file_upload"])
def cpc_homepage(self):
return self.api_send(self.ACCOUNT_URL["cpc_homepage"])
def artemis_ad_type_list(self):
return self.api_send(self.ACCOUNT_URL["artemis_ad_type_list"])
......@@ -81,4 +83,5 @@ if __name__ == '__main__':
print(web_request().service_all())
# print(web_request().file_upload("19","PC8uTySuxipukIMuqNV1OPB376C2ZZ3g","WU_FILE_0","lADPDg7mQdiUTiLNAZDNAZA_400_400.jpg_720x720g.jpg","image/jpeg","Mon Apr 26 2021 11:29:45 GMT+0800 (中国标准时间)","17688","(binary)"))
print(web_request().conversation_user_id(0, "您好", 602329, "271caac2ae1687ca0a56ee18115b8183", "NLeTxEx1BOQo1zjv2us9BQ00ViMAHGpJ"))
print(web_request().cpc_homepage())
\ No newline at end of file
print(web_request().cpc_homepage())
print(web_request().artemis_ad_type_list())
\ No newline at end of file
......@@ -127,4 +127,12 @@ cpc_homepage:
params: {}
data: {}
json: {}
isLogin: 1 #需要登录
artemis_ad_type_list:
method: get
url: /api/web/artemis/ad/type_list
params: {}
data: {}
json: {}
isLogin: 1 #需要登录
\ No newline at end of file
develop_host:
backend: http://backend.paas-develop.env
# backend: http://backend.paas-develop.env
# om: http://om.paas-develop.env
# doctor: http://doctor.paas-develop.env
doctor: http://doctor.paas-develop.env
# backend: https://backend.igengmei.com
......@@ -386,6 +386,8 @@ CONVERSATIONCOUPON=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_dat
#医生后台-发送私信
CONVERSATIONUSERID=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "conversation_user_id.yaml")
#医生后台-服务资源
ADTYPELIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "artemis_ad_type_list.yaml")
#医生后台-点点通商品-概览
CPCHOMEPAGE=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "cpc_homepage.yaml")
......
import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_doctor_api.web_request import web_request
class TestArtemisAdTypeList:
data = BaseRequest().api_load(path_setting.ADTYPELIST)
adtypelist_case, adtypelist_data = get_ids(data, "artemis_ad_type_list")
@pytest.mark.parametrize("param",adtypelist_data,ids=adtypelist_case)
def test_artemis_ad_type_list(self, param):
'''服务资源列表'''
r = web_request().artemis_ad_type_list()
if r["error"] == 0:
adtypes = r.get("data").get("adtypes", [])
assert len(adtypes) >= param["assert"]
artemis_ad_type_list:
#服务资源case
-
case: "服务资源"
assert: 0
assert_account: 0
assert1: True
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