Commit 62eb92f7 authored by 张慧's avatar 张慧

次卡商品列表筛选器接口case完善

parent be767162
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment