Commit 681ae0a2 authored by 张慧's avatar 张慧

修改支付平台传参方式-改为接口返回传参

parent 98b297df
......@@ -12,7 +12,9 @@ class TestBeautyCardPaymentMethod:
@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"])
payment = janus_request().beauty_card_order_submit("12345678912", "10176", 1, 1, 0, 0)
payment_id = payment["data"]["payment_id"]
r = janus_request().beauty_card_payment_method(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