def test_get_stripe_customer_data(mock_retrieve): """A customer's subscription can be retrieved.""" data = get_stripe_customer_data("cust_id") assert data == { "stripe_plan_amount": 64, "stripe_card_last4": "0019", "active_subscriptions": True, }
def test_get_stripe_customer_data(mock_retrieve): '''A customer's subscription can be retrieved.''' data = get_stripe_customer_data('cust_id') assert data == { 'stripe_plan_amount': 64, 'stripe_card_last4': '0019', 'active_subscriptions': True }