Skip to content

Commit

Permalink
support-for - MR comment applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Schielmann committed Aug 19, 2024
1 parent eb1bbff commit 7af001b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration/test_paymnet_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,15 @@ def test_list(self, api):

def test_will_not_create_duplicate_if_same_idempotency_key_is_used(self, api):
# given
request_options = RequestOptions()
request_options.set_idempotency_key(random_string())
idempotency_key = random_string()
payment_method_req = payment_method()

# when
first_call_response = api.payment_methods.create(
payment_method_req, request_options=request_options
payment_method_req, request_options={"idempotency_key": idempotency_key}
)
second_call_response = api.payment_methods.create(
payment_method_req, request_options=request_options
payment_method_req, request_options={"idempotency_key": idempotency_key}
)

# then
Expand Down

0 comments on commit 7af001b

Please sign in to comment.