mirror of https://github.com/zulip/zulip.git
billing: Rename customer_with_active_subscription in fixture generation.
Fixes regression introduced in 79dddd5
.
This commit is contained in:
parent
a8f66573f3
commit
086b7d76e5
|
@ -97,7 +97,7 @@ def catch_stripe_errors(func: CallableT) -> CallableT:
|
||||||
def get_stripe_customer(stripe_customer_id: str) -> stripe.Customer:
|
def get_stripe_customer(stripe_customer_id: str) -> stripe.Customer:
|
||||||
stripe_customer = stripe.Customer.retrieve(stripe_customer_id, expand=["default_source"])
|
stripe_customer = stripe.Customer.retrieve(stripe_customer_id, expand=["default_source"])
|
||||||
if PRINT_STRIPE_FIXTURE_DATA:
|
if PRINT_STRIPE_FIXTURE_DATA:
|
||||||
print(''.join(['"customer_with_active_subscription": ', str(stripe_customer), ','])) # nocoverage
|
print(''.join(['"customer_with_subscription": ', str(stripe_customer), ','])) # nocoverage
|
||||||
return stripe_customer
|
return stripe_customer
|
||||||
|
|
||||||
@catch_stripe_errors
|
@catch_stripe_errors
|
||||||
|
|
Loading…
Reference in New Issue