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
0a0e5251
Commit
0a0e5251
authored
Jun 04, 2021
by
陈雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑可标准化商品
parent
adbef146
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
2 deletions
+45
-2
glmer_request.py
all_doctor_api/glmer_request.py
+7
-2
glmer_request.yaml
all_doctor_api/glmer_request.yaml
+10
-0
path_setting.py
path_setting.py
+2
-0
test_tag_properties.py
test_doctor_case/glmer_case/test_tag_properties.py
+20
-0
tag_properties.yaml
test_doctor_data/glmer_data/tag_properties.yaml
+6
-0
No files found.
all_doctor_api/glmer_request.py
View file @
0a0e5251
...
...
@@ -31,10 +31,15 @@ class glmer_request(BaseRequest):
def
service_detail
(
self
)
:
return
self
.
api_send
(
self
.
REGISTER_URL
[
"service_detail"
])
def
tag_properties
(
self
,
catalog_ids
):
#我的商品-编辑可标准化商品
self
.
params
[
"catalog_ids"
]
=
catalog_ids
return
self
.
api_send
(
self
.
REGISTER_URL
[
"tag_properties"
])
if
__name__
==
'__main__'
:
print
(
glmer_request
()
.
service_register
(
"激光溶脂瘦脸"
,
"[236]"
,
"true"
,
"测试"
,
"wangyang"
,
"1624377600"
,
"1627660800"
,
"<p>12</p>"
,
"https://heras.igengmei.com/service/2021/06/01/0b9b110e60"
,
"UPCOYIJkZOMcdd9FDzpBqYjzWUh55fBpVi3AhWpL:nBdvXYz_CR7wNcuroo3TLyvuQiY=:eyJzY29wZSI6InZpZGVvIiwiZGVhZGxpbmUiOjE2MjI1MTg2NTd9"
,
"0"
,
"false"
,
"1"
,
"false"
,
"0"
,
'[{"gengmei_price":100,"original_price":200,"is_online":true}]'
,
"PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
))
print
(
glmer_request
()
.
service_detail
())
\ No newline at end of file
print
(
glmer_request
()
.
service_detail
())
print
(
glmer_request
()
.
tag_properties
(
"[115,141]"
))
\ No newline at end of file
all_doctor_api/glmer_request.yaml
View file @
0a0e5251
...
...
@@ -34,3 +34,13 @@ service_detail:
data
:
{}
json
:
{}
isLogin
:
1
tag_properties
:
method
:
get
url
:
/api/glmer/tag/properties
params
:
catalog_ids
:
${catalog_ids}
data
:
{}
json
:
{}
isLogin
:
1
path_setting.py
View file @
0a0e5251
...
...
@@ -64,6 +64,8 @@ OFFLINE_DATA=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "s
#医生后台-我的商品-删除商品
DELETE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web2_data"
,
"service_delete.yaml"
)
#医生后台-编辑ke
#搜索首页-热门搜索
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/search_data"
,
"keywords.yaml"
)
...
...
test_doctor_case/glmer_case/test_tag_properties.py
0 → 100644
View file @
0a0e5251
import
pytest
import
path_setting
from
all_doctor_api.glmer_request
import
glmer_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestTagProperties
:
tag_properties
=
BaseRequest
()
.
api_load
(
path_setting
.
DETAIL_DATA
)
TagProperties_case
,
TagProperties_data
=
get_ids
(
tag_properties
,
"tag_properties"
)
@pytest.mark.parametrize
(
"params"
,
TagProperties_data
,
ids
=
TagProperties_case
)
def
test_ServiceDetail
(
self
,
params
):
r
=
glmer_request
()
.
tag_properties
()
print
(
"------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
params
[
"assert"
]
\ No newline at end of file
test_doctor_data/glmer_data/tag_properties.yaml
0 → 100644
View file @
0a0e5251
tag_properties
:
-
case
:
"
我的商品-编辑可标准化商品
"
catalog_ids
:
"
[115,141]"
assert
:
0
\ No newline at end of file
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