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
d15b8ce9
Commit
d15b8ce9
authored
Jul 16, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
次卡商祥页case完善
parent
22ddcd53
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
29 deletions
+13
-29
janus_request.py
all_backend_api/janus_request.py
+2
-7
janus_request.yaml
all_backend_api/janus_request.yaml
+0
-4
test_beauty_card_detail.py
test_backend_case/janus_case/test_beauty_card_detail.py
+5
-3
beauty_card_detail.yaml
test_backend_data/janus_data/beauty_card_detail.yaml
+6
-15
No files found.
all_backend_api/janus_request.py
View file @
d15b8ce9
...
...
@@ -186,20 +186,15 @@ class janus_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
'coupon_my_list'
])
# 次卡订单详情页(未使用 和 部分使用 和 已使用)
def
beauty_card_order_detail
(
self
,
order_id
):
def
beauty_card_order_detail
(
self
,
order_id
):
self
.
params
[
'order_id'
]
=
order_id
return
self
.
api_send
(
self
.
data
[
'beauty_card_order_detail'
])
# 次卡商详页
def
beauty_card_detail
(
self
,
spu_id
,
sku_id
,
welfareId
,
version
,
current_city_id
,
lat
,
lng
):
def
beauty_card_detail
(
self
,
spu_id
,
sku_id
,
version
):
self
.
params
[
'spu_id'
]
=
spu_id
self
.
params
[
'sku_id'
]
=
sku_id
self
.
params
[
'welfareId'
]
=
welfareId
self
.
params
[
'version'
]
=
version
self
.
params
[
'current_city_id'
]
=
current_city_id
self
.
params
[
'lat'
]
=
lat
self
.
params
[
'lng'
]
=
lng
return
self
.
api_send
(
self
.
data
[
"beauty_card_detail"
])
...
...
all_backend_api/janus_request.yaml
View file @
d15b8ce9
...
...
@@ -139,11 +139,7 @@ beauty_card_detail:
params
:
spu_id
:
${spu_id}
sku_id
:
${sku_id}
welfareId
:
${welfareId}
version
:
${version}
current_city_id
:
${current_city_id}
lat
:
${lat}
lng
:
${lng}
data
:
{
}
json
:
{
}
...
...
test_backend_case/janus_case/test_beauty_card_detail.py
View file @
d15b8ce9
...
...
@@ -12,7 +12,9 @@ class TestBeautyCardDetail:
@pytest.mark.parametrize
(
"param"
,
beauty_card_detail_data
,
ids
=
beauty_card_detail_case
)
def
test_beauty_card_detail
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_detail
(
param
[
"spu_id"
],
param
[
"sku_id"
],
param
[
"
welfareId"
],
param
[
"version"
],
param
[
"current_city_id"
],
param
[
"lat"
],
param
[
"lng
"
])
r
=
janus_request
()
.
beauty_card_detail
(
param
[
"spu_id"
],
param
[
"sku_id"
],
param
[
"
version
"
])
if
r
[
"error"
]
==
0
:
assert
len
(
r
[
"data"
][
"beautycart_list"
])
>
param
[
"assert"
]
if
param
[
"spu_id"
]
==
100018
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
if
param
[
"spu_id"
]
==
1000180
:
assert
r
[
"data"
]
==
param
[
"assert_data"
]
test_backend_data/janus_data/beauty_card_detail.yaml
View file @
d15b8ce9
beauty_card_detail
:
#次卡商详页
-
case
:
"
次卡商详页spuid=100018"
assert
:
0
case
:
"
次卡商详页spu正常case"
spu_id
:
100018
sku_id
:
10046
welfareId
:
100018
version
:
7.44.0
current_city_id
:
beijing
lat
:
40.001879
lng
:
116.487194
assert_error
:
0
-
case
:
"
次卡商详页spuid=100021"
assert
:
0
spu_id
:
100021
sku_id
:
10159
welfareId
:
100021
case
:
"
次卡商详页spu不存在case"
spu_id
:
1000180
sku_id
:
10046
version
:
7.44.0
current_city_id
:
beijing
lat
:
40.001879
lng
:
116.487194
assert_data
:
{}
...
...
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