Commit 88b34e17 authored by edz's avatar edz

Merge branch 'common_dev' into crk_dev

parents 33a4b9bf ba6c15fa
......@@ -84,6 +84,10 @@ class web_request(BaseRequest):
self.params["start_time"] = start_time
self.params["end_time"] = end_time
return self.api_send(self.ACCOUNT_URL["cpc_community_data_info"])
def cpc_community_click_logs(self,page):
"点点通-内容-推广明细"
self.params["page"] = page
return self.api_send(self.ACCOUNT_URL["cpc_community_click_logs"])
......@@ -113,4 +117,5 @@ if __name__ == '__main__':
print(web_request().artemis_order_id_detail())
print(web_request().cpc_community_homepage())
print(web_request().cpc_community_diaries())
print(web_request().cpc_community_data_info("15604767","2021-07-02","2021-07-12"))
\ No newline at end of file
print(web_request().cpc_community_data_info("15604767","2021-07-02","2021-07-12"))
print(web_request().cpc_community_click_logs(1))
\ No newline at end of file
......@@ -180,4 +180,13 @@ cpc_community_data_info:
end_time: ${end_time}
data: {}
json: {}
isLogin: 1 #需要登录
\ No newline at end of file
isLogin: 1 #需要登录
cpc_community_click_logs:
method: get
url: /api/web/cpc_community/click_logs
params:
page: ${page}
data: {}
json: {}
isLogin: 1 #需要登录
......@@ -444,6 +444,8 @@ CPCCOMMUNITYHOMEPAGE=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_d
CPCCOMMUNITYDIARIES=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "cpc_community_diaries.yaml")
#医生后台-点点通内容-数据统计
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")
#更美次卡橱窗组件商品
......
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 TestCpcCommunityClickLogs:
data = BaseRequest().api_load(path_setting.CPCCOMMUNITYCLICKLOGS)
cpccommunityclicklogs_case, cpccommunityclicklogs_data = get_ids(data, "cpc_community_click_logs")
@pytest.mark.parametrize("param",cpccommunityclicklogs_data,ids=cpccommunityclicklogs_case)
def test_cpc_community_click_logs(self, param):
'''点点通内容-数据统计'''
r = web_request().cpc_community_click_logs(param["page"])
if r["error"] == 0:
click_list = r.get("data").get("click_list", [])
assert len(click_list) >= param["assert"]
cpc_community_click_logs:
#点点通内容-推广明细case
-
case: "点点通内容-推广明细"
page: 1
assert: 0
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