Commit 1dac21fd authored by 张慧's avatar 张慧

商祥页-本院推荐case完善

parent 3fc69ac1
......@@ -70,7 +70,7 @@ class janus_request(BaseRequest):
def mine_guess_you_like(self):
return self.api_send(self.data["mine_guess_you_like"])
#商祥页-详情
#商祥页-详情/商祥页-本院推荐
def product_detail(self, service_id, service_item_id, version):
self.params["service_id"] = service_id
self.params["service_item_id"] = service_item_id
......
......@@ -16,7 +16,7 @@ class TestProductDetail:
if r["error"] == 0:
assert r["error"] == param["assert_error"]
assert r["data"]["service_hospital"]["services"] != param["assert_service_hospital"]
if r["error"] == 1:
assert r["message"] == param["assert_spu_message"]
# if r["error"] == -1:
# assert r["message"] == param["assert_version_message"]
......@@ -5,12 +5,22 @@ product_detail:
service_item_id: "618788"
version: "7.43.0"
assert_error: 0
assert_service_hospital: ""
-
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"
service_id: "585726"
service_item_id: "618788"
version: "7.43.0"
assert_spu_message: "美购不存在"
# -
# case: "校验sku_id错误case"
# 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