Commit 2ae27808 authored by 张淑琴's avatar 张淑琴

品类推广管理列表

parent 8f5e2002
......@@ -55,6 +55,11 @@ class web2_request(BaseRequest):
"我的服务订单-已支付广告包"
self.params["package_order_id"] = package_order_id
return self.api_send(self.SERVICE_URL["artemis_ad_packageorder_detail"])
def artemis_cpc_categorypromotemanage_list(self, promote_flag,id):
"点点通商品-品类推广管理"
self.params["promote_flag"] = promote_flag
self.params["id"] = id
return self.api_send(self.SERVICE_URL["artemis_cpc_categorypromotemanage_list"])
......@@ -70,6 +75,6 @@ if __name__ == '__main__':
print(web2_request().service_deletelist("1"))#商品回收站
print(web2_request().artemis_ad_add_shopping_cart_info())
print(web2_request().artemis_add_value_order_id_detail())
print("---11233353667----")
print(web2_request().artemis_ad_packageorder_detail("685529883901"))
print(web2_request().artemis_cpc_categorypromotemanage_list(-1,-1))
......@@ -89,4 +89,14 @@ artemis_ad_packageorder_detail:
package_order_id: ${package_order_id}
data: {}
json: {}
isLogin: 1 #需要登录
artemis_cpc_categorypromotemanage_list:
method: get
url: /api/web2/artemis/cpc/categorypromotemanage_list
params:
promote_flag: ${promote_flag}
id: ${id}
data: {}
json: {}
isLogin: 1 #需要登录
\ No newline at end of file
......@@ -468,6 +468,8 @@ CPCCOMMUNITYDIARIES=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_da
CPCCOMMUNITYDATAINFO=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "cpc_community_data_info.yaml")
#医生后台-点点通内容-推广明细
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")
#更美次卡橱窗组件商品
......
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 TestArtemisCpcCategorypromotemanageList:
data = BaseRequest().api_load(path_setting.CPCCATEGORYPROMOTEMANAGELIST)
cpccategorypromotemanagelist_case, cpccategorypromotemanagelist_data = get_ids(data, "artemis_cpc_categorypromotemanage_list")
@pytest.mark.parametrize("param",cpccategorypromotemanagelist_data,ids=cpccategorypromotemanagelist_case)
def test_artemis_cpc_categorypromotemanage_list(self, param):
'''点点通商品-品类推广管理'''
r = web2_request().artemis_cpc_categorypromotemanage_list(param["promote_flag"], param["id"])
print(r)
if r["error"] == 0:
assert r["data"]["is_cpc"] == param["assert_cpc"]
manage_list = r.get("data").get("manage_list", [])
assert len(manage_list) >= param["assert"]
artemis_cpc_categorypromotemanage_list:
#点点通商品-品类推广管理
-
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