Commit aa6c2e58 authored by 张慧's avatar 张慧

Merge branch 'common_dev' into zhanghui_dev

合并common_dev代码
parents 2b144efe 6e024e68
...@@ -71,5 +71,5 @@ if __name__ == '__main__': ...@@ -71,5 +71,5 @@ if __name__ == '__main__':
print(web2_request().artemis_ad_add_shopping_cart_info()) print(web2_request().artemis_ad_add_shopping_cart_info())
print(web2_request().artemis_add_value_order_id_detail()) print(web2_request().artemis_add_value_order_id_detail())
print("---11233353667----") print("---11233353667----")
#print(web2_request().artemis_ad_packageorder_detail("685529883901")) print(web2_request().artemis_ad_packageorder_detail("685529883901"))
...@@ -86,7 +86,7 @@ artemis_ad_packageorder_detail: ...@@ -86,7 +86,7 @@ artemis_ad_packageorder_detail:
method: get method: get
url: /api/web2/artemis/ad/packageorder/detail url: /api/web2/artemis/ad/packageorder/detail
params: params:
package_order_id:${package_order_id} package_order_id: ${package_order_id}
data: {} data: {}
json: {} json: {}
isLogin: 1 #需要登录 isLogin: 1 #需要登录
\ No newline at end of file
...@@ -431,6 +431,8 @@ ORDERLIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "arte ...@@ -431,6 +431,8 @@ ORDERLIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "arte
ORDERIDDETAIL=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "artemis_order_id_detail.yaml") ORDERIDDETAIL=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "artemis_order_id_detail.yaml")
#医生后台-我的服务订单-已购买订单 #医生后台-我的服务订单-已购买订单
VALUEORDERIDDETAIL=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_add_value_order_id_detail.yaml") VALUEORDERIDDETAIL=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_add_value_order_id_detail.yaml")
#医生后台-我的服务订单-已购买广告包
ADPACKAGEORDERDETAIL=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_ad_packageorder_detail.yaml")
#医生后台-点点通商品-概览 #医生后台-点点通商品-概览
CPCHOMEPAGE=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "cpc_homepage.yaml") CPCHOMEPAGE=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "cpc_homepage.yaml")
......
import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_doctor_api.web2_request import web2_request
class TestArtemisAdPackageorderDetail:
data = BaseRequest().api_load(path_setting.ADPACKAGEORDERDETAIL)
adpackageorderdetail_case, adpackageorderdetail_data = get_ids(data, "artemis_ad_packageorder_detail")
@pytest.mark.parametrize("param",adpackageorderdetail_data,ids=adpackageorderdetail_case)
def test_artemis_ad_packageorder_detail(self, param):
'''我的服务订单-已支付广告包'''
r = web2_request().artemis_ad_packageorder_detail(param["package_order_id"])
print(r)
if r["error"] == 0:
advertise_source = r.get("data").get("info").get("advertise_source", [])
#ExtendValue["info"] = json.loads(ExtendValue["info"])
assert len(advertise_source) > param["assert"]
...@@ -6,7 +6,7 @@ from in_common.base_request import BaseRequest ...@@ -6,7 +6,7 @@ from in_common.base_request import BaseRequest
from all_doctor_api.web_request import web_request from all_doctor_api.web_request import web_request
class TestService: class TestConversationCoupon:
data = BaseRequest().api_load(path_setting.CONVERSATIONCOUPON) data = BaseRequest().api_load(path_setting.CONVERSATIONCOUPON)
conversationcoupon_case, conversationcoupon_data = get_ids(data, "conversation_coupon") conversationcoupon_case, conversationcoupon_data = get_ids(data, "conversation_coupon")
......
artemis_ad_packageorder_detail:
#我的服务订单-已支付广告包
-
case: "我的服务订单-已支付广告包"
package_order_id: "685529883901"
assert: 0
...@@ -5,7 +5,7 @@ conversation_coupon: ...@@ -5,7 +5,7 @@ conversation_coupon:
doctor_user_id: "602329" doctor_user_id: "602329"
assert: 0 assert: 0
- -
case: "点击私信发送优惠券按钮接口报错" case: "点击私信发送优惠券按钮缺少参数case"
doctor_user_id: "602329" doctor_user_id: "602329"
assert: 0 assert: 0
assert_message: '缺少参数: doctor_user_id' assert_message: '缺少参数: doctor_user_id'
......
...@@ -10,7 +10,7 @@ conversation_user_id: ...@@ -10,7 +10,7 @@ conversation_user_id:
assert_message: "消息发送成功" assert_message: "消息发送成功"
assert_name: "露露2" assert_name: "露露2"
- case: "发送失败" - case: "权限校验case:没有权限"
type: 0 type: 0
content: 您好 content: 您好
doctor_user_id: 6023291 doctor_user_id: 6023291
......
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