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
18039244
Commit
18039244
authored
Jul 26, 2021
by
张淑琴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品类推广相关
parent
ca3a0f61
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
4 deletions
+61
-4
web2_request.py
all_doctor_api/web2_request.py
+6
-3
web2_request.yaml
all_doctor_api/web2_request.yaml
+11
-0
path_setting.py
path_setting.py
+3
-0
test_artemis_cpc_category_query.py
..._doctor_case/web2_case/test_artemis_cpc_category_query.py
+24
-0
artemis_cpc_category_query.yaml
test_doctor_data/web2_data/artemis_cpc_category_query.yaml
+8
-0
artemis_cpc_categorypromotemanage_list.yaml
...ata/web2_data/artemis_cpc_categorypromotemanage_list.yaml
+9
-1
No files found.
all_doctor_api/web2_request.py
View file @
18039244
...
...
@@ -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
))
all_doctor_api/web2_request.yaml
View file @
18039244
...
...
@@ -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
path_setting.py
View file @
18039244
...
...
@@ -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"
)
#更美次卡橱窗组件商品
...
...
test_doctor_case/web2_case/test_artemis_cpc_category_query.py
0 → 100644
View file @
18039244
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"
]
test_doctor_data/web2_data/artemis_cpc_category_query.yaml
0 → 100644
View file @
18039244
artemis_cpc_category_query
:
#点点通商品-品类推广管理-新增推广品类
-
case
:
"
点点通商品-品类推广管理-新增推广品类"
doctor_id
:
"
wangyang"
flag_relation
:
0
assert
:
0
assert_cpc
:
True
test_doctor_data/web2_data/artemis_cpc_categorypromotemanage_list.yaml
View file @
18039244
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
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