Commit 384dcb44 authored by 张慧's avatar 张慧

次卡-支付平台接口

parent 792155ce
......@@ -125,6 +125,11 @@ class janus_request(BaseRequest):
self.params["vfc_code"] = vfc_code
return self.api_send(self.data["beauty_card_update_phone"])
#次卡-支付平台
def beauty_card_payment_method(self, payment_id):
self.params["payment_id"] = payment_id
return self.api_send(self.data["beauty_card_payment_method"])
# 新版本我的美券列表
def product_my_list(self,start_num,tab_id):
self.params['start_num'] = start_num
......@@ -154,6 +159,8 @@ if __name__ == '__main__':
print(janus_request().beauty_card_confirm("10176", 1, 1, 0))
#打印次卡-确认订单页面-修改手机号接口返回
print(janus_request().beauty_card_update_phone("+8612348543876", 1, "084430"))
#打印次卡-支付平台接口返回
print(janus_request().beauty_card_payment_method("101670448736595"))
print(janus_request().product_my_list(0, 0))
......@@ -133,6 +133,16 @@ beauty_card_update_phone:
json: {}
isLogin: 1
#次卡-支付平台
beauty_card_payment_method:
method: get
url: /api/janus/beauty_card/payment_method
params:
payment_id: ${payment_id}
data: {}
json: {}
isLogin: 1
#新版本我的美券
coupon_my_list:
method: get
......
......@@ -270,6 +270,8 @@ RELATED_SERVICE_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/hy
BEAUTY_CARD_CONFIRM = os.path.join(BASE_DIR, "backend_auto/test_backend_data/janus_data", "beauty_card_confirm.yaml")
#次卡-确认订单页面-修改手机号接口
BEAUTY_CARD_UPDATE_PHONE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/janus_data", "beauty_card_update_phone.yaml")
#次卡-支付平台
BEAUTY_CARD_PAYMENT_METHOD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/janus_data", "beauty_card_payment_method.yaml")
#捜索结果页-医生/医院tab
CONTENTV6_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "search_request.yaml")
......
import pytest
from all_backend_api.janus_request import janus_request
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
class TestBeautyCardPaymentMethod:
data = BaseRequest().api_load(path_setting.BEAUTY_CARD_PAYMENT_METHOD)
beauty_card_payment_method_case, beauty_card_payment_method_data = get_ids(data, "beauty_card_payment_method")
@pytest.mark.parametrize("param", beauty_card_payment_method_data, ids=beauty_card_payment_method_case)
def test_beauty_card_payment_method(self, param):
r = janus_request().beauty_card_payment_method(param["payment_id"])
if r["error"] == 0:
assert r["error"] == param["assert_error"]
beauty_card_payment_method:
-
case: "次卡-支付平台接口-校验接口调用成功case"
payment_id: "101670448736595"
assert_error: 0
\ No newline at end of file
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