Exemple #1
0
def test_get_me_invoice(me_endpoint_sws_client):
    order_id = 1000
    invoice_id = 2000
    response = me_endpoint_sws_client.ecom().get_invoice(order_id=order_id,
                                                         invoice_id=invoice_id)

    assert response.status_code != 500
Exemple #2
0
def test_delete_me_subscription(me_endpoint_sws_client):
    subscription_id = "subid"
    response = me_endpoint_sws_client.ecom().delete_subscription(
        subscription_id=subscription_id)

    assert response.status_code != 404
    assert response.status_code != 500
Exemple #3
0
def test_update_me_plan_change(me_endpoint_sws_client):
    subscription_id = "subsid"
    plan_change_id = "1000"
    response = me_endpoint_sws_client.ecom().update_plan_change(
        subscription_id=subscription_id, plan_change_id=plan_change_id)
    assert response.status_code != 500
    assert response.status_code != 404
Exemple #4
0
def test_send_braintree_webhook(me_endpoint_sws_client):
    notification_kind = "subscription_charged_successfully"
    subscription_id = "fp4f36"
    response = me_endpoint_sws_client.ecom().send_braintree_webhook(
        notification_kind=notification_kind, subscription_id=subscription_id)
    assert response.status_code != 500
    assert response.status_code != 404
Exemple #5
0
def test_delete_me_payment_method(me_endpoint_sws_client):
    payment_method_token = "Uvuvwevwe"
    response = me_endpoint_sws_client.ecom().delete_payment_method(
        payment_method_token=payment_method_token)

    assert response.status_code != 404
    assert response.status_code != 500
Exemple #6
0
def test_add_me_plan_change_request(me_endpoint_sws_client):

    subscription_id = "Uvuvwevwe"
    catalog_product_id = 105
    response = me_endpoint_sws_client.ecom().add_plan_change_request(
        subscription_id=subscription_id, catalog_product_id=catalog_product_id)
    assert response.status_code != 404
    assert response.status_code != 500
Exemple #7
0
def test_update_me_subscription(me_endpoint_sws_client):
    subscription_id = "subId"
    number_of_billing_cycle = 400
    payment_method_token = "tokenlookin"
    response = me_endpoint_sws_client.ecom().update_subscription(
        subscription_id=subscription_id,
        number_of_billing_cycle=number_of_billing_cycle,
        payment_method_token=payment_method_token)
    assert response.status_code != 404
    assert response.status_code != 500
Exemple #8
0
def test_add_me_payment_method(me_endpoint_sws_client):
    nonce = "Uvuvwevwe_Onyetenyevwe_Ugwembubwem_Ossas"
    device_data = "Uvuvwevwes Macbook Pro"
    billing_address_id = "uv"
    response = me_endpoint_sws_client.ecom().add_payment_method(
        nonce=nonce,
        device_data=device_data,
        billing_address_id=billing_address_id)
    assert response.status_code != 500
    assert response.status_code != 404
Exemple #9
0
def test_update_me_payment_method(me_endpoint_sws_client):
    payment_token = "Uvuvwevwe"
    nonce = "Uvuvwevwe_Onyetenyevwe_Ugwembubwem_Ossas"
    device_data = "Uvuvwevwes Macbook Pro"
    billing_address_id = "Uv"

    response = me_endpoint_sws_client.ecom().update_payment_methods(
        payment_token=payment_token,
        nonce=nonce,
        device_data=device_data,
        billing_address_id=billing_address_id)
    assert response.status_code != 404
    assert response.status_code != 500
Exemple #10
0
def test_get_me_orders(me_endpoint_sws_client):
    response = me_endpoint_sws_client.ecom().get_orders()

    assert response.status_code != 404
    assert response.status_code != 500
Exemple #11
0
def test_get_me_subscriptions_with_sub_id(me_endpoint_sws_client):
    response = me_endpoint_sws_client.ecom().get_subscriptions(
        "notasubscriptionid")
    assert response.status_code != 404
    assert response.status_code != 500
Exemple #12
0
def test_get_me_payment_methods(me_endpoint_sws_client):
    response = me_endpoint_sws_client.ecom().get_payment_methods()

    assert response.status_code != 404
    assert response.status_code != 405
    assert response.status_code != 500