fix: pass Huihui token to production cashier

This commit is contained in:
stefanfeng
2026-10-22 09:29:56 +08:00
parent 33f53ff9d1
commit 03b343fd0b
3 changed files with 4 additions and 5 deletions
@@ -163,7 +163,7 @@ def test_org_recharge_only_credits_after_verified_provider_order(authorization_c
provider.get_order.assert_not_called()
def test_org_recharge_does_not_return_checkout_token_outside_test_environment(authorization_context):
def test_org_recharge_returns_checkout_token_for_production_cashier(authorization_context):
seed()
context = authorization_context
_enable_huihui_payment_login(context)
@@ -180,7 +180,7 @@ def test_org_recharge_does_not_return_checkout_token_outside_test_environment(au
)
assert response.status_code == 200
assert "checkoutToken" not in response.json()["data"]
assert response.json()["data"]["checkoutToken"] == f"huihui-payment-{context['suffix']}"
def test_expired_pending_payment_orders_are_closed_without_touching_recent_orders(authorization_context):