def test_delete_user_subscription(user_endpoint_sws_client): subscription_id = "subid" response = user_endpoint_sws_client.ecom().delete_subscription( subscription_id=subscription_id) assert response.status_code != 404 assert response.status_code != 500
def test_delete_user_payment_method(user_endpoint_sws_client): payment_method_token = "Uvuvwevwe" response = user_endpoint_sws_client.ecom().delete_payment_method( payment_method_token=payment_method_token) assert response.status_code != 404 assert response.status_code != 500
def test_update_user_plan_change(user_endpoint_sws_client): subscription_id = "subsid" plan_change_id = "1000" response = user_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
def test_get_user_invoice(user_endpoint_sws_client): order_id = 1000 invoice_id = 2000 response = user_endpoint_sws_client.ecom().get_invoice( order_id=order_id, invoice_id=invoice_id) assert response.status_code != 500
def test_update_user_subscription(user_endpoint_sws_client): subscription_id = "bdcbd840933411e9b3ef1239f8b24ea2" number_of_billing_cycle = 4 payment_method_token = "j8d7cx" response = user_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
def test_add_user_payment_method(user_endpoint_sws_client): nonce = "Uvuvwevwe_Onyetenyevwe_Ugwembubwem_Ossas" device_data = "Uvuvwevwes Macbook Pro" billing_address_id = "uv" response = user_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
def test_update_user_payment_method(user_endpoint_sws_client): payment_token = "Uvuvwevwe" nonce = "Uvuvwevwe_Onyetenyevwe_Ugwembubwem_Ossas" device_data = "Uvuvwevwes Macbook Pro" billing_address_id = "Uv" response = user_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
def test_get_user_orders(user_endpoint_sws_client): response = user_endpoint_sws_client.ecom().get_orders() assert response.status_code != 404 assert response.status_code != 500
def test_get_user_subscriptions_with_sub_id(user_endpoint_sws_client): response = user_endpoint_sws_client.ecom().get_subscriptions( "notasubscriptionid") assert response.status_code != 404 assert response.status_code != 500
def test_get_user_payment_methods(user_endpoint_sws_client): response = user_endpoint_sws_client.ecom().get_payment_methods() assert response.status_code != 404 assert response.status_code != 500
def test_get_me_orders(user_endpoint_sws_client): order_id = 1000 response = user_endpoint_sws_client.ecom().get_orders(order_id) assert response.status_code != 404 assert response.status_code != 500