Commit e65f43cb authored by 张慧's avatar 张慧

商祥页详情接口接口返回数据校验case完善

parent 35858d9f
...@@ -17,6 +17,25 @@ class TestProductDetail: ...@@ -17,6 +17,25 @@ class TestProductDetail:
if r["error"] == 0: if r["error"] == 0:
assert r["error"] == param["assert_error"] assert r["error"] == param["assert_error"]
assert r["data"]["service_hospital"]["services"] != param["assert_service_hospital"] assert r["data"]["service_hospital"]["services"] != param["assert_service_hospital"]
assert r["data"]["doctor_user_id"] is not None
assert r["data"]["share_data"] is not None
assert r["data"]["service"]["service_name"] is not None
assert r["data"]["service"]["pic"] is not None
assert r["data"]["service"]["doctor_name"] is not None
assert r["data"]["service"]["header_pic"] is not None
assert r["data"]["service"]["project_type_name"] is not None
assert r["data"]["service"]["share_content"] is not None
assert r["data"]["service"]["short_description"] is not None
assert r["data"]["service"]["service_id"] is not None
assert r["data"]["service"]["distance"] is not None
assert r["data"]["service_case"] is not None
assert r["data"]["service_features"] is not None
assert r["data"]["tabs"] is not None
assert r["data"]["quick_consultation"] is not None
assert r["data"]["is_online"] is not None
assert r["data"]["is_multiattribute"] is not None
assert r["data"]["can_sell"] is not None
assert r["data"]["big_quick_consultation"] is not None
if r["error"] == 1: if r["error"] == 1:
assert r["message"] == param["assert_spu_message"] assert r["message"] == param["assert_spu_message"]
...@@ -14,13 +14,20 @@ product_detail: ...@@ -14,13 +14,20 @@ product_detail:
assert_error: 0 assert_error: 0
assert_service_hospital: "" assert_service_hospital: ""
assert_spu_message: "美购不存在" assert_spu_message: "美购不存在"
-
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" case: "校验spu_id错误case"
service_id: "585726" service_id: "585726"
service_item_id: "618788" service_item_id: "618788"
version: "7.43.0" version: "7.43.0"
assert_spu_message: "美购不存在" assert_spu_message: "美购不存在"
# - # -
# case: "校验sku_id错误case" # case: "校验sku_id错误case"
# service_id: "5857263" # service_id: "5857263"
......
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