Skip to content

Commit

Permalink
test: Correct payment method delete test mock response code (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgrayston-paddle authored Nov 15, 2024
1 parent 37e97f0 commit c1614dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def test_get_payment_methods_returns_expected_card_response(
str(expected_response_body)
), "The response JSON generated by ResponseParser() doesn't match the expected fixture JSON"

assert response.id == "paymtd_01hs8zx6x377xfsfrt2bqsevbw"
assert response.customer_id == "ctm_01hv6y1jedq4p1n0yqn5ba3ky4"
assert response.address_id == "add_01hv8h6jj90jjz0d71m6hj4r9z"
assert response.paypal is None
Expand Down Expand Up @@ -249,6 +250,7 @@ def test_get_payment_methods_returns_expected_paypal_response(
str(expected_response_body)
), "The response JSON generated by ResponseParser() doesn't match the expected fixture JSON"

assert response.id == "paymtd_01hs8zx6x377xfsfrt2bqsevbw"
assert response.customer_id == "ctm_01hv6y1jedq4p1n0yqn5ba3ky4"
assert response.address_id == "add_01hv8h6jj90jjz0d71m6hj4r9z"
assert response.card is None
Expand All @@ -269,7 +271,7 @@ def test_delete_payment_method_returns_expected_response(
):
customer_id = "ctm_01hv6y1jedq4p1n0yqn5ba3ky4"
payment_method_id = "paymtd_01hs8zx6x377xfsfrt2bqsevbw"
expected_response_status = 200
expected_response_status = 204
expected_path = "/customers/ctm_01hv6y1jedq4p1n0yqn5ba3ky4/payment-methods/paymtd_01hs8zx6x377xfsfrt2bqsevbw"

expected_url = f"{test_client.base_url}{expected_path}"
Expand Down

0 comments on commit c1614dc

Please sign in to comment.