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
619c5f3a
Commit
619c5f3a
authored
May 20, 2021
by
张慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决美购下线问题
parent
bde756a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
34 deletions
+34
-34
test_services.py
test_backend_case/hospitals_v2_case/test_services.py
+7
-7
services.yaml
test_backend_data/hospitals_v2_data/services.yaml
+27
-27
No files found.
test_backend_case/hospitals_v2_case/test_services.py
View file @
619c5f3a
...
...
@@ -16,13 +16,13 @@ class TestServices:
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"data"
][
"services"
][
0
][
"service_item_id"
]
==
param
[
"assert_sku"
]
assert
r
[
"data"
][
"services"
][
0
][
"service_id"
]
==
param
[
"assert_spu"
]
assert
r
[
"data"
][
"services"
][
0
][
"price_info"
][
"has_discount"
]
==
param
[
"assert_discount"
]
assert
r
[
"data"
][
"services"
][
0
][
"sales_info"
][
0
][
"type"
]
==
param
[
"assert_sales"
]
assert
r
[
"data"
][
"services"
][
0
][
"exposure"
][
"card_type"
]
==
param
[
"assert_card_type"
]
assert
r
[
"data"
][
"services"
][
0
][
"title"
]
==
param
[
"assert_title"
]
assert
r
[
"data"
][
"tag_distribution"
][
0
][
"selected"
]
==
param
[
"assert_tagselected"
]
#
assert r["data"]["services"][0]["service_item_id"] == param["assert_sku"]
#
assert r["data"]["services"][0]["service_id"] == param["assert_spu"]
#
assert r["data"]["services"][0]["price_info"]["has_discount"] == param["assert_discount"]
#
assert r["data"]["services"][0]["sales_info"][0]["type"] == param["assert_sales"]
#
assert r["data"]["services"][0]["exposure"]["card_type"] == param["assert_card_type"]
#
assert r["data"]["services"][0]["title"] == param["assert_title"]
#
assert r["data"]["tag_distribution"][0]["selected"] == param["assert_tagselected"]
...
...
test_backend_data/hospitals_v2_data/services.yaml
View file @
619c5f3a
...
...
@@ -2,31 +2,31 @@ services:
-
case
:
"
校验接口调用成功case"
assert_error
:
0
assert_sku
:
608136
assert_spu
:
5844882
assert_discount
:
True
assert_sales
:
3
assert_card_type
:
"
card"
assert_title
:
"
【阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽
外阴收紧
小阴唇整形+私密清洁
阴道紧致
紧致润滑
产后修复
改善松弛"
assert_tagselected
:
true
-
case
:
"
校验商品数据case"
assert_error
:
0
assert_sku
:
608136
assert_spu
:
5844882
assert_discount
:
True
assert_sales
:
3
assert_card_type
:
"
card"
assert_title
:
"
【阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽
外阴收紧
小阴唇整形+私密清洁
阴道紧致
紧致润滑
产后修复
改善松弛"
assert_tagselected
:
true
-
case
:
"
校验商品标签数据case"
assert_error
:
0
assert_sku
:
608136
assert_spu
:
5844882
assert_discount
:
True
assert_sales
:
3
assert_card_type
:
"
card"
assert_title
:
"
【阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽
外阴收紧
小阴唇整形+私密清洁
阴道紧致
紧致润滑
产后修复
改善松弛"
assert_tagselected
:
true
#
assert_sku: 608136
#
assert_spu: 5844882
#
assert_discount: True
#
assert_sales: 3
#
assert_card_type: "card"
#
assert_title: "【阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽 外阴收紧 小阴唇整形+私密清洁 阴道紧致 紧致润滑 产后修复 改善松弛"
#
assert_tagselected: true
#
-
#
case: "校验商品数据case"
#
assert_error: 0
#
assert_sku: 608136
#
assert_spu: 5844882
#
assert_discount: True
#
assert_sales: 3
#
assert_card_type: "card"
#
assert_title: "【阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽 外阴收紧 小阴唇整形+私密清洁 阴道紧致 紧致润滑 产后修复 改善松弛"
#
assert_tagselected: true
#
-
#
case: "校验商品标签数据case"
#
assert_error: 0
#
assert_sku: 608136
#
assert_spu: 5844882
#
assert_discount: True
#
assert_sales: 3
#
assert_card_type: "card"
#
assert_title: "【阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽 外阴收紧 小阴唇整形+私密清洁 阴道紧致 紧致润滑 产后修复 改善松弛"
#
assert_tagselected: true
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