From 7af001b8549df31aa224818abb1a4714e1030c9a Mon Sep 17 00:00:00 2001 From: Michal Schielmann Date: Mon, 19 Aug 2024 17:05:48 +0200 Subject: [PATCH] support-for - MR comment applied --- tests/integration/test_paymnet_methods.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_paymnet_methods.py b/tests/integration/test_paymnet_methods.py index ba49338..57e685b 100644 --- a/tests/integration/test_paymnet_methods.py +++ b/tests/integration/test_paymnet_methods.py @@ -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