Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓莹莹
backend_auto
Commits
2ae27808
Commit
2ae27808
authored
Jul 23, 2021
by
张淑琴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品类推广管理列表
parent
8f5e2002
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
1 deletion
+52
-1
web2_request.py
all_doctor_api/web2_request.py
+6
-1
web2_request.yaml
all_doctor_api/web2_request.yaml
+11
-0
path_setting.py
path_setting.py
+2
-0
test_artemis_cpc_categorypromotemanage_list.py
.../web2_case/test_artemis_cpc_categorypromotemanage_list.py
+25
-0
artemis_cpc_categorypromotemanage_list.yaml
...ata/web2_data/artemis_cpc_categorypromotemanage_list.yaml
+8
-0
No files found.
all_doctor_api/web2_request.py
View file @
2ae27808
...
...
@@ -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
))
all_doctor_api/web2_request.yaml
View file @
2ae27808
...
...
@@ -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
path_setting.py
View file @
2ae27808
...
...
@@ -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"
)
#更美次卡橱窗组件商品
...
...
test_doctor_case/web2_case/test_artemis_cpc_categorypromotemanage_list.py
0 → 100644
View file @
2ae27808
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"
]
test_doctor_data/web2_data/artemis_cpc_categorypromotemanage_list.yaml
0 → 100644
View file @
2ae27808
artemis_cpc_categorypromotemanage_list
:
#点点通商品-品类推广管理
-
case
:
"
点点通商品-品类推广管理"
promote_flag
:
-1
id
:
-1
assert
:
0
assert_cpc
:
True
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment