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
62eb92f7
Commit
62eb92f7
authored
Aug 20, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
次卡商品列表筛选器接口case完善
parent
be767162
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
13 deletions
+29
-13
test_beautycard_filters.py
...d_case/visual_beauty_card_case/test_beautycard_filters.py
+10
-7
beautycard_filters.yaml
...kend_data/visual_beauty_card_data/beautycard_filters.yaml
+19
-6
No files found.
test_backend_case/visual_beauty_card_case/test_beautycard_filters.py
View file @
62eb92f7
...
...
@@ -12,10 +12,14 @@ class TestBeautyCardFilters:
@pytest.mark.parametrize
(
"param"
,
beautycard_filters_data
,
ids
=
beautycard_filters_case
)
def
test_beautycard_filters
(
self
,
param
):
print
(
'次卡商品列表筛选器'
)
r
=
visual_beauty_card_request
()
.
beautycard_filters
(
param
[
"unit_id"
],
param
[
"current_city_id"
],
param
[
"version"
])
if
r
[
"data"
]:
print
(
'次卡商品列表筛选器下拉列表有值'
)
assert
len
(
r
[
"data"
][
"field"
])
!=
param
[
"assert"
]
assert
len
(
r
[
"data"
][
"areas"
])
!=
param
[
"assert"
]
assert
len
(
r
[
"data"
][
"order"
])
!=
param
[
"assert"
]
\ No newline at end of file
if
param
[
"unit_id"
]
==
"20109"
:
assert
len
(
r
[
"data"
])
>
param
[
"assert_spu"
]
assert
len
(
r
[
"data"
][
"field"
])
is
not
None
assert
len
(
r
[
"data"
][
"areas"
])
is
not
None
assert
len
(
r
[
"data"
][
"order"
])
is
not
None
if
param
[
"unit_id"
]
==
"20113"
:
assert
len
(
r
[
"data"
])
>
param
[
"assert_sku"
]
assert
len
(
r
[
"data"
][
"field"
])
is
not
None
assert
len
(
r
[
"data"
][
"areas"
])
is
not
None
assert
len
(
r
[
"data"
][
"order"
])
is
not
None
test_backend_data/visual_beauty_card_data/beautycard_filters.yaml
View file @
62eb92f7
...
...
@@ -4,13 +4,26 @@ beautycard_filters:
case
:
"
更美次卡商品列表组件筛选器-按SPU导入,筛选器接口正常"
unit_id
:
"
20109"
current_city_id
:
"
beijing"
version
:
"
743.0"
assert
:
0
version
:
"
7.43.0"
assert_spu
:
0
-
#更美次卡商品列表组件筛选器-按SPU导入,筛选器接口正常
case
:
"
更美次卡商品列表组件筛选器-按SPU导入,筛选器接口正常"
unit_id
:
"
20109"
current_city_id
:
"
beijing"
version
:
"
7.43.0"
assert_spu
:
0
-
#更美次卡商品列表组件筛选器-按SKU导入,筛选器接口正常
case
:
"
更美次卡商品列表组件筛选器-按SKU导入,筛选器接口正常"
unit_id
:
"
20113"
current_city_id
:
"
beijing"
version
:
"
7.43.0"
assert_sku
:
0
-
#更美次卡商品列表组件筛选器-按SKU导入,筛选器接口正常
case
:
"
更美次卡商品列表组件筛选器-按SKU导入,筛选器接口正常"
unit_id
:
"
20113"
current_city_id
:
"
beijing"
version
:
"
743.0"
assert
:
0
\ No newline at end of file
version
:
"
7.43.0"
assert_sku
:
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