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
1dac21fd
Commit
1dac21fd
authored
Aug 13, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商祥页-本院推荐case完善
parent
3fc69ac1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
janus_request.py
all_backend_api/janus_request.py
+1
-1
test_product_detail.py
test_backend_case/janus_case/test_product_detail.py
+2
-2
product_detail.yaml
test_backend_data/janus_data/product_detail.yaml
+10
-0
No files found.
all_backend_api/janus_request.py
View file @
1dac21fd
...
...
@@ -70,7 +70,7 @@ class janus_request(BaseRequest):
def
mine_guess_you_like
(
self
):
return
self
.
api_send
(
self
.
data
[
"mine_guess_you_like"
])
#商祥页-详情
#商祥页-详情
/商祥页-本院推荐
def
product_detail
(
self
,
service_id
,
service_item_id
,
version
):
self
.
params
[
"service_id"
]
=
service_id
self
.
params
[
"service_item_id"
]
=
service_item_id
...
...
test_backend_case/janus_case/test_product_detail.py
View file @
1dac21fd
...
...
@@ -16,7 +16,7 @@ class TestProductDetail:
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"data"
][
"service_hospital"
][
"services"
]
!=
param
[
"assert_service_hospital"
]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert_spu_message"
]
# if r["error"] == -1:
# assert r["message"] == param["assert_version_message"]
test_backend_data/janus_data/product_detail.yaml
View file @
1dac21fd
...
...
@@ -5,12 +5,22 @@ product_detail:
service_item_id
:
"
618788"
version
:
"
7.43.0"
assert_error
:
0
assert_service_hospital
:
"
"
-
case
:
"
校验本院推荐返回不为空case"
service_id
:
"
585726"
service_item_id
:
"
618788"
version
:
"
7.43.0"
assert_error
:
0
assert_service_hospital
:
"
"
assert_spu_message
:
"
美购不存在"
-
case
:
"
校验spu_id错误case"
service_id
:
"
585726"
service_item_id
:
"
618788"
version
:
"
7.43.0"
assert_spu_message
:
"
美购不存在"
# -
# case: "校验sku_id错误case"
# service_id: "5857263"
...
...
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