Commit b88b11d7 authored by 张淑琴's avatar 张淑琴

fix

parent 09f7e236
...@@ -22,6 +22,7 @@ class conversation_request(BaseRequest): ...@@ -22,6 +22,7 @@ class conversation_request(BaseRequest):
if __name__ == '__main__': if __name__ == '__main__':
print(conversation_request().message_read("beijing", 1,'[10622,10626,10646,10651]')) print(conversation_request().message_read("beijing", 1,'[10622,10626,10646,10651]'))
print("---------")
print(conversation_request().detail_messageid(10, 0, 0)) print(conversation_request().detail_messageid(10, 0, 0))
......
...@@ -51,6 +51,10 @@ class web2_request(BaseRequest): ...@@ -51,6 +51,10 @@ class web2_request(BaseRequest):
def artemis_add_value_order_id_detail(self): def artemis_add_value_order_id_detail(self):
"我的服务订单-已购买" "我的服务订单-已购买"
return self.api_send(self.SERVICE_URL["artemis_add_value_order_id_detail"]) return self.api_send(self.SERVICE_URL["artemis_add_value_order_id_detail"])
def artemis_ad_packageorder_detail(self, package_order_id):
"我的服务订单-已支付广告包"
self.params["package_order_id"] = package_order_id
return self.api_send(self.SERVICE_URL["artemis_ad_packageorder_detail"])
...@@ -66,4 +70,6 @@ if __name__ == '__main__': ...@@ -66,4 +70,6 @@ if __name__ == '__main__':
print(web2_request().service_deletelist("1"))#商品回收站 print(web2_request().service_deletelist("1"))#商品回收站
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(web2_request().artemis_ad_packageorder_detail("685529883901"))
...@@ -80,4 +80,13 @@ artemis_add_value_order_id_detail: ...@@ -80,4 +80,13 @@ artemis_add_value_order_id_detail:
params: {} params: {}
data: {} data: {}
json: {} json: {}
isLogin: 1 #需要登录
artemis_ad_packageorder_detail:
method: get
url: /api/web2/artemis/ad/packageorder/detail
params:
package_order_id:${package_order_id}
data: {}
json: {}
isLogin: 1 #需要登录 isLogin: 1 #需要登录
\ No newline at end of file
develop_host: develop_host:
# backend: http://backend.paas-develop.env backend: http://backend.paas-develop.env
# om: http://om.paas-develop.env # om: http://om.paas-develop.env
doctor: http://doctor.paas-develop.env # doctor: http://doctor.paas-develop.env
# backend: https://backend.igengmei.com # backend: https://backend.igengmei.com
...@@ -426,7 +426,7 @@ ADTYPELIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "art ...@@ -426,7 +426,7 @@ ADTYPELIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "art
ADADDSHOPPINGCARTINFO=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_ad_add_shopping_cart_info.yaml") ADADDSHOPPINGCARTINFO=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_ad_add_shopping_cart_info.yaml")
#医生后台-我的服务订单 #医生后台-我的服务订单
ORDERLIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "artemis_order_list.yaml") ORDERLIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "artemis_order_list.yaml")
#医生后台-我的服务订单-已上线订单 #医生后台-我的服务订单-已上线/待审核/待上线/已下线订单
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")
......
...@@ -15,6 +15,7 @@ class TestMessageRead: ...@@ -15,6 +15,7 @@ class TestMessageRead:
@pytest.mark.parametrize("param",messageread_data,ids=messageread_case) @pytest.mark.parametrize("param",messageread_data,ids=messageread_case)
def test_message_read(self,param): def test_message_read(self,param):
r = conversation_request().message_read(param["current_city_id"], param["release"], param["message_ids"]) r = conversation_request().message_read(param["current_city_id"], param["release"], param["message_ids"])
print(r)
if r["error"] == 0: if r["error"] == 0:
assert r["data"]["success"] == param["assert"] assert r["data"]["success"] == param["assert"]
#if r["error"] == 0: #if r["error"] == 0:
......
...@@ -5,5 +5,5 @@ message_read: ...@@ -5,5 +5,5 @@ message_read:
current_city_id: "beijing" current_city_id: "beijing"
release: 1 release: 1
#uqid: "1B519701-A4F5-453E-9D99-140B5AF697A0" #uqid: "1B519701-A4F5-453E-9D99-140B5AF697A0"
message_ids: [10622,10626,10646,10651] message_ids: "[10622,10626,10646,10651]"
assert: "true" assert: True
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,7 @@ send_msg: ...@@ -15,7 +15,7 @@ send_msg:
#验证失败case #验证失败case
- -
case: "给咨询师发送消息失败" case: "参数传值错误case:提示—服务器开小差了~"
#current_city_id: beijing #current_city_id: beijing
conversation_id: 463465 conversation_id: 463465
is_system: 0 is_system: 0
......
...@@ -15,7 +15,7 @@ private_conversation: ...@@ -15,7 +15,7 @@ private_conversation:
#验证成功case #验证成功case
- -
case: "发送消息成功" case: "未登录case:提示请登录"
content: "你好" content: "你好"
target_uid: 358749351 target_uid: 358749351
referrer: "message_home" referrer: "message_home"
......
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