示例#1
0
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,
    }
示例#2
0
文件: test_utils.py 项目: Elchi3/kuma
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
    }
示例#3
0
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
    }