Commit 18039244 authored by 张淑琴's avatar 张淑琴

品类推广相关

parent ca3a0f61
......@@ -61,9 +61,11 @@ class web2_request(BaseRequest):
self.params["id"] = id
return self.api_send(self.SERVICE_URL["artemis_cpc_categorypromotemanage_list"])
def artemis_cpc_category_query(self, doctor_id, flag_relation):
"点点通商品-品类推广管理-新增推广品类"
self.params["doctor_id"] = doctor_id
self.params["flag_relation"] = flag_relation
return self.api_send(self.SERVICE_URL["artemis_cpc_category_query"])
if __name__ == '__main__':
......@@ -77,4 +79,5 @@ if __name__ == '__main__':
print(web2_request().artemis_add_value_order_id_detail())
print(web2_request().artemis_ad_packageorder_detail("685529883901"))
print(web2_request().artemis_cpc_categorypromotemanage_list(-1,-1))
print(web2_request().artemis_cpc_category_query("wangyang", 0))
......@@ -99,4 +99,14 @@ artemis_cpc_categorypromotemanage_list:
id: ${id}
data: {}
json: {}
isLogin: 1 #需要登录
artemis_cpc_category_query:
method: get
url: /api/web2/artemis/cpc/category/query
params:
doctor_id: ${doctor_id}
flag_relation: ${flag_relation}
data: {}
json: {}
isLogin: 1 #需要登录
\ No newline at end of file
......@@ -470,6 +470,9 @@ CPCCOMMUNITYDATAINFO=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_d
CPCCOMMUNITYCLICKLOGS=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "cpc_community_click_logs.yaml")
#医生后台-点点通商品-品类推广管理
CPCCATEGORYPROMOTEMANAGELIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_cpc_categorypromotemanage_list.yaml")
#医生后台-点点通商品-品类推广管理-新增推广品类
CPCCATEGORYQUERY=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_cpc_category_query.yaml")
#更美次卡橱窗组件商品
......
import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_doctor_api.web2_request import web2_request
class TestArtemisCpcCategoryQuery:
data = BaseRequest().api_load(path_setting.CPCCATEGORYQUERY)
cpccategoryquery_case, cpccategoryquery_data = get_ids(data, "artemis_cpc_category_query")
@pytest.mark.parametrize("param",cpccategoryquery_data,ids=cpccategoryquery_case)
def test_artemis_cpc_category_query(self, param):
'''点点通商品-品类推广管理-'''
r = web2_request().artemis_cpc_category_query(param["doctor_id"], param["flag_relation"])
print(r)
if r["error"] == 0:
data = r.get("data", [])
assert len(data) >= param["assert"]
artemis_cpc_category_query:
#点点通商品-品类推广管理-新增推广品类
-
case: "点点通商品-品类推广管理-新增推广品类"
doctor_id: "wangyang"
flag_relation: 0
assert: 0
assert_cpc: True
artemis_cpc_categorypromotemanage_list:
#点点通商品-品类推广管理
-
case: "点点通商品-品类推广管理"
case: "点点通商品-品类推广管理-全部"
promote_flag: -1
id: -1
assert: 0
assert_cpc: True
-
case: "点点通商品-品类推广管理-已关闭全部品类"
promote_flag: 1
id: -1
assert: 0
assert_cpc: 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