Commit 09f7e236 authored by 张淑琴's avatar 张淑琴

已购买

parent 307e911c
......@@ -48,6 +48,11 @@ class web2_request(BaseRequest):
def artemis_ad_add_shopping_cart_info(self):
#我的购物车
return self.api_send(self.SERVICE_URL["artemis_ad_add_shopping_cart_info"])
def artemis_add_value_order_id_detail(self):
"我的服务订单-已购买"
return self.api_send(self.SERVICE_URL["artemis_add_value_order_id_detail"])
......@@ -60,4 +65,5 @@ if __name__ == '__main__':
print(web2_request().service_delete("1","209863","PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"))
print(web2_request().service_deletelist("1"))#商品回收站
print(web2_request().artemis_ad_add_shopping_cart_info())
print(web2_request().artemis_add_value_order_id_detail())
......@@ -74,3 +74,10 @@ artemis_ad_add_shopping_cart_info:
data: {}
json: {}
isLogin: 1 #需要登录
artemis_add_value_order_id_detail:
method: get
url: /api/web2/artemis/add_value_order/957727877165/detail
params: {}
data: {}
json: {}
isLogin: 1 #需要登录
\ No newline at end of file
develop_host:
backend: http://backend.paas-develop.env
# backend: http://backend.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
......@@ -428,6 +428,8 @@ ADADDSHOPPINGCARTINFO=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2
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")
#医生后台-我的服务订单-已购买订单
VALUEORDERIDDETAIL=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web2_data", "artemis_add_value_order_id_detail.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 TestArtemisAddValueOrderIdDetail:
data = BaseRequest().api_load(path_setting.VALUEORDERIDDETAIL)
addvalueorderiddetail_case, addvalueorderiddetail_data = get_ids(data, "artemis_add_value_order_id_detail")
@pytest.mark.parametrize("param",addvalueorderiddetail_data,ids=addvalueorderiddetail_case)
def test_artemis_add_value_order_id_detail(self, param):
'''我的服务订单-已购买'''
r = web2_request().artemis_add_value_order_id_detail()
if r["error"] == 0:
assert r["data"]["status"] == param["assert"]
artemis_add_value_order_id_detail:
#已购买case
-
case: "已购买"
assert: "已购买"
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