billing: Rename retrieve_customer fixture.

This commit is contained in:
Vishnu Ks
2018-07-26 17:21:06 +05:30
committed by Rishi Gupta
parent b7d3a1a0f3
commit 8bcd4131fe
3 changed files with 12 additions and 12 deletions

View File

@@ -98,7 +98,7 @@ def catch_stripe_errors(func: CallableT) -> CallableT:
def get_stripe_customer(stripe_customer_id: str) -> stripe.Customer:
stripe_customer = stripe.Customer.retrieve(stripe_customer_id, expand=["default_source"])
if PRINT_STRIPE_FIXTURE_DATA:
print(''.join(['"retrieve_customer": ', str(stripe_customer), ','])) # nocoverage
print(''.join(['"customer_with_active_subscription": ', str(stripe_customer), ','])) # nocoverage
return stripe_customer
@catch_stripe_errors