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
278d89a2
Commit
278d89a2
authored
Jun 04, 2021
by
陈雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交远程
parent
0a0e5251
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
path_setting.py
path_setting.py
+2
-1
test_tag_properties.py
test_doctor_case/glmer_case/test_tag_properties.py
+4
-3
No files found.
path_setting.py
View file @
278d89a2
...
...
@@ -64,7 +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
#医生后台-编辑可标准化商品
PROPERTIES_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/glmer_data"
,
"tag_properties.yaml"
)
#搜索首页-热门搜索
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"search_request.yaml"
)
...
...
test_doctor_case/glmer_case/test_tag_properties.py
View file @
278d89a2
...
...
@@ -7,13 +7,13 @@ from in_common.base_request import BaseRequest
class
TestTagProperties
:
tag_properties
=
BaseRequest
()
.
api_load
(
path_setting
.
DETAIL
_DATA
)
tag_properties
=
BaseRequest
()
.
api_load
(
path_setting
.
PROPERTIES
_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
):
def
test_
TagProperties
(
self
,
params
):
r
=
glmer_request
()
.
tag_properties
()
r
=
glmer_request
()
.
tag_properties
(
params
[
'catalog_ids'
]
)
print
(
"------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
params
[
"assert"
]
\ 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