fix: pass Huihui token to production cashier
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user