From 5c59072911fba78804763be3a10af1504c474336 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Fri, 16 Feb 2024 00:18:05 -0800 Subject: [PATCH 1/3] Unify http_client_mock --- .../abstract/test_custom_method.py | 20 ++- tests/api_resources/test_quote.py | 8 +- tests/conftest.py | 27 ---- tests/http_client_mock.py | 148 +++++++++--------- tests/services/test_quote.py | 10 +- tests/test_api_requestor.py | 44 ++---- 6 files changed, 105 insertions(+), 152 deletions(-) diff --git a/tests/api_resources/abstract/test_custom_method.py b/tests/api_resources/abstract/test_custom_method.py index 12142473f..01aa84356 100644 --- a/tests/api_resources/abstract/test_custom_method.py +++ b/tests/api_resources/abstract/test_custom_method.py @@ -109,8 +109,8 @@ def test_call_custom_list_method_class_paginates(self, http_client_mock): assert ids == ["cus_1", "cus_2", "cus_3"] - def test_call_custom_stream_method_class(self, http_client_mock_streaming): - http_client_mock_streaming.stub_request( + def test_call_custom_stream_method_class(self, http_client_mock): + http_client_mock.stub_request( "post", path="/v1/myresources/mid/do_the_stream_thing", rbody=util.io.BytesIO(str.encode("response body")), @@ -119,7 +119,7 @@ def test_call_custom_stream_method_class(self, http_client_mock_streaming): resp = self.MyResource.do_stream_stuff("mid", foo="bar") - http_client_mock_streaming.assert_requested( + http_client_mock.assert_requested( "post", path="/v1/myresources/mid/do_the_stream_thing", post_data="foo=bar", @@ -150,9 +150,9 @@ def test_call_custom_method_class_with_object(self, http_client_mock): assert obj.thing_done is True def test_call_custom_stream_method_class_with_object( - self, http_client_mock_streaming + self, http_client_mock ): - http_client_mock_streaming.stub_request( + http_client_mock.stub_request( "post", path="/v1/myresources/mid/do_the_stream_thing", rbody=util.io.BytesIO(str.encode("response body")), @@ -162,7 +162,7 @@ def test_call_custom_stream_method_class_with_object( obj = self.MyResource.construct_from({"id": "mid"}, "mykey") resp = self.MyResource.do_stream_stuff(obj, foo="bar") - http_client_mock_streaming.assert_requested( + http_client_mock.assert_requested( "post", path="/v1/myresources/mid/do_the_stream_thing", post_data="foo=bar", @@ -192,10 +192,8 @@ def test_call_custom_method_instance(self, http_client_mock): ) assert obj.thing_done is True - def test_call_custom_stream_method_instance( - self, http_client_mock_streaming - ): - http_client_mock_streaming.stub_request( + def test_call_custom_stream_method_instance(self, http_client_mock): + http_client_mock.stub_request( "post", path="/v1/myresources/mid/do_the_stream_thing", rbody=util.io.BytesIO(str.encode("response body")), @@ -205,7 +203,7 @@ def test_call_custom_stream_method_instance( obj = self.MyResource.construct_from({"id": "mid"}, "mykey") resp = obj.do_stream_stuff(foo="bar") - http_client_mock_streaming.assert_requested( + http_client_mock.assert_requested( "post", path="/v1/myresources/mid/do_the_stream_thing", post_data="foo=bar", diff --git a/tests/api_resources/test_quote.py b/tests/api_resources/test_quote.py index 20d04cffc..ebf509765 100644 --- a/tests/api_resources/test_quote.py +++ b/tests/api_resources/test_quote.py @@ -140,10 +140,10 @@ def test_can_list_computed_upfront_line_items_classmethod( ) assert isinstance(resources.data[0], stripe.LineItem) - def test_can_pdf(self, setup_upload_api_base, http_client_mock_streaming): + def test_can_pdf(self, setup_upload_api_base, http_client_mock): resource = stripe.Quote.retrieve(TEST_RESOURCE_ID) stream = resource.pdf() - http_client_mock_streaming.assert_requested( + http_client_mock.assert_requested( "get", api_base=stripe.upload_api_base, path="/v1/quotes/%s/pdf" % TEST_RESOURCE_ID, @@ -152,10 +152,10 @@ def test_can_pdf(self, setup_upload_api_base, http_client_mock_streaming): assert content == b"Stripe binary response" def test_can_pdf_classmethod( - self, setup_upload_api_base, http_client_mock_streaming + self, setup_upload_api_base, http_client_mock ): stream = stripe.Quote.pdf(TEST_RESOURCE_ID) - http_client_mock_streaming.assert_requested( + http_client_mock.assert_requested( "get", api_base=stripe.upload_api_base, path="/v1/quotes/%s/pdf" % TEST_RESOURCE_ID, diff --git a/tests/conftest.py b/tests/conftest.py index 1dd6b7e3e..d8f30969e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -90,15 +90,6 @@ def http_client_mock(mocker): stripe.default_http_client = old_client -@pytest.fixture -def http_client_mock_streaming(mocker): - mock_client = HTTPClientMock(mocker, is_streaming=True) - old_client = stripe.default_http_client - stripe.default_http_client = mock_client.get_mock_http_client() - yield mock_client - stripe.default_http_client = old_client - - @pytest.fixture def stripe_mock_stripe_client(http_client_mock): return StripeClient( @@ -115,21 +106,3 @@ def file_stripe_mock_stripe_client(http_client_mock): base_addresses={"files": MOCK_API_BASE}, http_client=http_client_mock.get_mock_http_client(), ) - - -@pytest.fixture -def stripe_mock_stripe_client_streaming(http_client_mock_streaming): - return StripeClient( - MOCK_API_KEY, - base_addresses={"api": MOCK_API_BASE}, - http_client=http_client_mock_streaming.get_mock_http_client(), - ) - - -@pytest.fixture -def file_stripe_mock_stripe_client_streaming(http_client_mock_streaming): - return StripeClient( - MOCK_API_KEY, - base_addresses={"files": MOCK_API_BASE}, - http_client=http_client_mock_streaming.get_mock_http_client(), - ) diff --git a/tests/http_client_mock.py b/tests/http_client_mock.py index 27631fd76..5f3211b33 100644 --- a/tests/http_client_mock.py +++ b/tests/http_client_mock.py @@ -212,28 +212,19 @@ def assert_post_data(self, expected, is_json=False): class HTTPClientMock(object): - def __init__(self, mocker, is_streaming=False, is_async=False): - if is_async: - self.mock_client = mocker.Mock( - wraps=stripe.http_client.new_default_http_client_async() - ) - else: - self.mock_client = mocker.Mock( - wraps=stripe.http_client.new_default_http_client() - ) + def __init__(self, mocker): + self.mock_client = mocker.Mock( + wraps=stripe.http_client.new_default_http_client() + ) - self.is_async = is_async self.mock_client._verify_ssl_certs = True self.mock_client.name = "mockclient" - if is_async and is_streaming: - self.func = self.mock_client.request_stream_with_retries_async - elif is_async and not is_streaming: - self.func = self.mock_client.request_with_retries_async - elif is_streaming: - self.func = self.mock_client.request_stream_with_retries - else: - self.func = self.mock_client.request_with_retries self.registered_responses = {} + self.funcs = [ + self.mock_client.request_with_retries, + self.mock_client.request_stream_with_retries, + ] + self.func_call_order = [] def get_mock_http_client(self) -> Mock: return self.mock_client @@ -247,73 +238,78 @@ def stub_request( rcode=200, rheaders={}, ) -> None: - def custom_side_effect(called_method, called_abs_url, *args, **kwargs): - called_path = urlsplit(called_abs_url).path - called_query = "" - if urlsplit(called_abs_url).query: - called_query = urlencode( - parse_and_sort(urlsplit(called_abs_url).query) - ) - if ( - called_method, - called_path, - called_query, - ) not in self.registered_responses: - raise AssertionError( - "Unexpected request made to %s %s %s" - % (called_method, called_path, called_query) - ) - return self.registered_responses[ - (called_method, called_path, called_query) - ] - - async def awaitable(x): - return x + def custom_side_effect_for_func(func): + def custom_side_effect( + called_method, called_abs_url, *args, **kwargs + ): + self.func_call_order.append(func) + called_path = urlsplit(called_abs_url).path + called_query = "" + if urlsplit(called_abs_url).query: + called_query = urlencode( + parse_and_sort(urlsplit(called_abs_url).query) + ) + if ( + called_method, + called_path, + called_query, + ) not in self.registered_responses: + raise AssertionError( + "Unexpected request made to %s %s %s" + % (called_method, called_path, called_query) + ) + ret = self.registered_responses[ + (called_method, called_path, called_query) + ] + return ret + + return custom_side_effect self.registered_responses[ (method, path, urlencode(parse_and_sort(query_string))) - ] = ( - awaitable( - ( - rbody, - rcode, - rheaders, - ) - ) - if self.is_async - else (rbody, rcode, rheaders) - ) + ] = (rbody, rcode, rheaders) - self.func.side_effect = custom_side_effect + for func in self.funcs: + func.side_effect = custom_side_effect_for_func(func) def get_last_call(self) -> StripeRequestCall: - if not self.func.called: + if len(self.func_call_order) == 0: raise AssertionError( "Expected request to have been made, but no calls were found." ) - return StripeRequestCall.from_mock_call(self.func.call_args) + return StripeRequestCall.from_mock_call( + self.func_call_order[-1].call_args + ) def get_all_calls(self) -> List[StripeRequestCall]: + calls_by_func = { + func: list(func.call_args_list) for func in self.funcs + } + + calls = [] + for func in self.func_call_order: + calls.append(calls_by_func[func].pop(0)) + return [ - StripeRequestCall.from_mock_call(call_args) - for call_args in self.func.call_args_list + StripeRequestCall.from_mock_call(call_args) for call_args in calls ] def find_call( self, method, api_base, path, query_string ) -> StripeRequestCall: - for call_args in self.func.call_args_list: - request_call = StripeRequestCall.from_mock_call(call_args) - try: - if request_call.check( - method=method, - api_base=api_base, - path=path, - query_string=query_string, - ): - return request_call - except AssertionError: - pass + for func in self.funcs: + for call_args in func.call_args_list: + request_call = StripeRequestCall.from_mock_call(call_args) + try: + if request_call.check( + method=method, + api_base=api_base, + path=path, + query_string=query_string, + ): + return request_call + except AssertionError: + pass raise AssertionError( "Expected request to have been made, but no calls were found." ) @@ -369,13 +365,15 @@ def assert_requested( ) def assert_no_request(self): - if self.func.called: - msg = ( - "Expected no request to have been made, but %s calls were " - "found." % (self.func.call_count) - ) - raise AssertionError(msg) + for func in self.funcs: + if func.called: + msg = ( + "Expected no request to have been made, but %s calls were " + "found." % (sum([func.call_count for func in self.funcs])) + ) + raise AssertionError(msg) def reset_mock(self): - self.func.reset_mock() + for func in self.funcs: + func.reset_mock() self.registered_responses = {} diff --git a/tests/services/test_quote.py b/tests/services/test_quote.py index 555b7ef51..7b7a1afd7 100644 --- a/tests/services/test_quote.py +++ b/tests/services/test_quote.py @@ -105,13 +105,11 @@ def test_can_list_computed_upfront_line_items( def test_can_pdf( self, - file_stripe_mock_stripe_client_streaming, - http_client_mock_streaming, + file_stripe_mock_stripe_client, + http_client_mock, ): - stream = file_stripe_mock_stripe_client_streaming.quotes.pdf( - TEST_RESOURCE_ID - ) - http_client_mock_streaming.assert_requested( + stream = file_stripe_mock_stripe_client.quotes.pdf(TEST_RESOURCE_ID) + http_client_mock.assert_requested( "get", api_base=stripe.upload_api_base, path="/v1/quotes/%s/pdf" % TEST_RESOURCE_ID, diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py index 8401b68d9..a04b27435 100644 --- a/tests/test_api_requestor.py +++ b/tests/test_api_requestor.py @@ -109,14 +109,6 @@ def requestor(self, http_client_mock): ) return requestor - @pytest.fixture - def requestor_streaming(self, http_client_mock_streaming): - requestor_streaming = _APIRequestor( - client=http_client_mock_streaming.get_mock_http_client(), - options=_GlobalRequestorOptions(), - ) - return requestor_streaming - @property def valid_path(self): return "/foo" @@ -251,17 +243,17 @@ def test_empty_methods(self, requestor, http_client_mock): assert resp == {} def test_empty_methods_streaming_response( - self, requestor_streaming, http_client_mock_streaming + self, requestor, http_client_mock ): for meth in VALID_API_METHODS: - http_client_mock_streaming.stub_request( + http_client_mock.stub_request( meth, path=self.valid_path, rbody=util.io.BytesIO(b"thisisdata"), rcode=200, ) - resp = requestor_streaming.request_stream( + resp = requestor.request_stream( meth, self.valid_path, {}, @@ -274,9 +266,7 @@ def test_empty_methods_streaming_response( else: post_data = None - http_client_mock_streaming.assert_requested( - meth, post_data=post_data - ) + http_client_mock.assert_requested(meth, post_data=post_data) assert isinstance(resp, StripeStreamResponse) assert resp.io.getvalue() == b"thisisdata" @@ -329,7 +319,7 @@ def test_methods_with_params_and_response( http_client_mock.assert_requested(method, abs_url=abs_url) def test_methods_with_params_and_streaming_response( - self, requestor_streaming, http_client_mock_streaming + self, requestor, http_client_mock ): for method in VALID_API_METHODS: encoded = ( @@ -337,7 +327,7 @@ def test_methods_with_params_and_streaming_response( "alist[0]=1&alist[1]=2&alist[2]=3" ) - http_client_mock_streaming.stub_request( + http_client_mock.stub_request( method, path=self.valid_path, query_string=encoded if method != "post" else "", @@ -351,7 +341,7 @@ def test_methods_with_params_and_streaming_response( "adatetime": datetime.datetime(2013, 1, 1, tzinfo=GMT1()), } - resp = requestor_streaming.request_stream( + resp = requestor.request_stream( method, self.valid_path, params, @@ -363,18 +353,14 @@ def test_methods_with_params_and_streaming_response( assert resp.io.getvalue() == b'{"foo": "bar", "baz": 6}' if method == "post": - http_client_mock_streaming.assert_requested( - method, post_data=encoded - ) + http_client_mock.assert_requested(method, post_data=encoded) else: abs_url = "%s%s?%s" % ( stripe.api_base, self.valid_path, encoded, ) - http_client_mock_streaming.assert_requested( - method, abs_url=abs_url - ) + http_client_mock.assert_requested(method, abs_url=abs_url) def test_uses_headers(self, requestor, http_client_mock): http_client_mock.stub_request( @@ -746,9 +732,9 @@ def test_invalid_grant_error(self, requestor, http_client_mock): ) def test_extract_error_from_stream_request_for_bytes( - self, requestor_streaming, http_client_mock_streaming + self, requestor, http_client_mock ): - http_client_mock_streaming.stub_request( + http_client_mock.stub_request( "get", path=self.valid_path, rbody=util.io.BytesIO(b'{"error": "invalid_grant"}'), @@ -756,15 +742,15 @@ def test_extract_error_from_stream_request_for_bytes( ) with pytest.raises(stripe.oauth_error.InvalidGrantError): - requestor_streaming.request_stream( + requestor.request_stream( "get", self.valid_path, {}, base_address="api", api_mode="V1" ) def test_extract_error_from_stream_request_for_response( - self, requestor_streaming, http_client_mock_streaming + self, requestor, http_client_mock ): # Responses don't have getvalue, they only have a read method. - http_client_mock_streaming.stub_request( + http_client_mock.stub_request( "get", path=self.valid_path, rbody=urllib3.response.HTTPResponse( @@ -775,7 +761,7 @@ def test_extract_error_from_stream_request_for_response( ) with pytest.raises(stripe.oauth_error.InvalidGrantError): - requestor_streaming.request_stream( + requestor.request_stream( "get", self.valid_path, {}, base_address="api", api_mode="V1" ) From 1880e0fc7ca2d0ae218c52db19b3b94c41a42204 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Fri, 16 Feb 2024 00:25:39 -0800 Subject: [PATCH 2/3] Codegen --- tests/test_generated_examples.py | 892 +++++++++++++++---------------- 1 file changed, 445 insertions(+), 447 deletions(-) diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 623170709..aaacd3757 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -34,7 +34,7 @@ def test_account_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.account_links.create( @@ -72,7 +72,7 @@ def test_accounts_capabilities_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.capabilities.list("acct_xxxxxxxxxxxxx") @@ -105,7 +105,7 @@ def test_accounts_capabilities_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.capabilities.retrieve( @@ -143,7 +143,7 @@ def test_accounts_capabilities_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.capabilities.update( @@ -176,7 +176,7 @@ def test_accounts_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.delete("acct_xxxxxxxxxxxxx") @@ -209,7 +209,7 @@ def test_accounts_external_accounts_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.delete( @@ -245,7 +245,7 @@ def test_accounts_external_accounts_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.delete( @@ -282,7 +282,7 @@ def test_accounts_external_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.list( @@ -320,7 +320,7 @@ def test_accounts_external_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.list( @@ -358,7 +358,7 @@ def test_accounts_external_accounts_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.list( @@ -394,7 +394,7 @@ def test_accounts_external_accounts_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.retrieve( @@ -430,7 +430,7 @@ def test_accounts_external_accounts_get_5_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.retrieve( @@ -467,7 +467,7 @@ def test_accounts_external_accounts_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.create( @@ -505,7 +505,7 @@ def test_accounts_external_accounts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.create( @@ -544,7 +544,7 @@ def test_accounts_external_accounts_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.update( @@ -584,7 +584,7 @@ def test_accounts_external_accounts_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.external_accounts.update( @@ -618,7 +618,7 @@ def test_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.list({"limit": 3}) @@ -646,7 +646,7 @@ def test_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.retrieve("acct_xxxxxxxxxxxxx") @@ -676,7 +676,7 @@ def test_accounts_login_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.login_links.create("acct_xxxxxxxxxxxxx") @@ -709,7 +709,7 @@ def test_accounts_persons_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.persons.delete( @@ -746,7 +746,7 @@ def test_accounts_persons_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.persons.list( @@ -782,7 +782,7 @@ def test_accounts_persons_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.persons.retrieve( @@ -820,7 +820,7 @@ def test_accounts_persons_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.persons.create( @@ -859,7 +859,7 @@ def test_accounts_persons_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.persons.update( @@ -901,7 +901,7 @@ def test_accounts_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.create( @@ -944,7 +944,7 @@ def test_accounts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.update( @@ -982,7 +982,7 @@ def test_accounts_reject_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.accounts.reject( @@ -1017,7 +1017,7 @@ def test_application_fees_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.application_fees.list({"limit": 3}) @@ -1047,7 +1047,7 @@ def test_application_fees_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.application_fees.retrieve("fee_xxxxxxxxxxxxx") @@ -1081,7 +1081,7 @@ def test_application_fees_refunds_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.application_fees.refunds.list( @@ -1117,7 +1117,7 @@ def test_application_fees_refunds_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.application_fees.refunds.retrieve( @@ -1150,7 +1150,7 @@ def test_application_fees_refunds_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.application_fees.refunds.create("fee_xxxxxxxxxxxxx") @@ -1185,7 +1185,7 @@ def test_application_fees_refunds_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.application_fees.refunds.update( @@ -1224,7 +1224,7 @@ def test_apps_secrets_delete_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.apps.secrets.delete_where( @@ -1264,7 +1264,7 @@ def test_apps_secrets_find_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.apps.secrets.find( @@ -1301,7 +1301,7 @@ def test_apps_secrets_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.apps.secrets.list({"scope": {"type": "account"}, "limit": 2}) @@ -1335,7 +1335,7 @@ def test_apps_secrets_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.apps.secrets.list({"scope": {"type": "account"}, "limit": 2}) @@ -1368,7 +1368,7 @@ def test_apps_secrets_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.apps.secrets.create( @@ -1410,7 +1410,7 @@ def test_apps_secrets_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.apps.secrets.create( @@ -1448,7 +1448,7 @@ def test_balance_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.balance_transactions.list({"limit": 3}) @@ -1478,7 +1478,7 @@ def test_balance_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.balance_transactions.retrieve("txn_xxxxxxxxxxxxx") @@ -1509,7 +1509,7 @@ def test_billing_portal_configurations_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.billing_portal.configurations.list({"limit": 3}) @@ -1539,7 +1539,7 @@ def test_billing_portal_configurations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.billing_portal.configurations.retrieve("bpc_xxxxxxxxxxxxx") @@ -1582,7 +1582,7 @@ def test_billing_portal_configurations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.billing_portal.configurations.create( @@ -1634,7 +1634,7 @@ def test_billing_portal_configurations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.billing_portal.configurations.update( @@ -1677,7 +1677,7 @@ def test_billing_portal_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.billing_portal.sessions.create( @@ -1713,7 +1713,7 @@ def test_charges_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.charges.capture("ch_xxxxxxxxxxxxx") @@ -1742,7 +1742,7 @@ def test_charges_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.charges.list({"limit": 3}) @@ -1770,7 +1770,7 @@ def test_charges_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.charges.retrieve("ch_xxxxxxxxxxxxx") @@ -1804,7 +1804,7 @@ def test_charges_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.charges.create( @@ -1844,7 +1844,7 @@ def test_charges_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.charges.update( @@ -1881,7 +1881,7 @@ def test_charges_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.charges.search( @@ -1915,7 +1915,7 @@ def test_checkout_sessions_expire_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.checkout.sessions.expire("sess_xyz") @@ -1945,7 +1945,7 @@ def test_checkout_sessions_expire_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.checkout.sessions.expire("cs_test_xxxxxxxxxxxxx") @@ -1976,7 +1976,7 @@ def test_checkout_sessions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.checkout.sessions.list({"limit": 3}) @@ -2006,7 +2006,7 @@ def test_checkout_sessions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.checkout.sessions.retrieve("cs_test_xxxxxxxxxxxxx") @@ -2036,7 +2036,7 @@ def test_checkout_sessions_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.checkout.sessions.line_items.list("sess_xyz") @@ -2083,7 +2083,7 @@ def test_checkout_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.checkout.sessions.create( @@ -2137,7 +2137,7 @@ def test_checkout_sessions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.checkout.sessions.create( @@ -2175,7 +2175,7 @@ def test_country_specs_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.country_specs.list({"limit": 3}) @@ -2205,7 +2205,7 @@ def test_country_specs_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.country_specs.retrieve("US") @@ -2233,7 +2233,7 @@ def test_coupons_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.coupons.delete("Z4OV52SU") @@ -2262,7 +2262,7 @@ def test_coupons_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.coupons.list({"limit": 3}) @@ -2290,7 +2290,7 @@ def test_coupons_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.coupons.retrieve("Z4OV52SU") @@ -2323,7 +2323,7 @@ def test_coupons_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.coupons.create( @@ -2362,7 +2362,7 @@ def test_coupons_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.coupons.update( @@ -2395,7 +2395,7 @@ def test_credit_notes_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.credit_notes.list({"limit": 3}) @@ -2429,7 +2429,7 @@ def test_credit_notes_lines_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.credit_notes.line_items.list( @@ -2470,7 +2470,7 @@ def test_credit_notes_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.credit_notes.create( @@ -2522,7 +2522,7 @@ def test_credit_notes_preview_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.credit_notes.preview( @@ -2567,7 +2567,7 @@ def test_credit_notes_preview_lines_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.credit_notes.preview_lines.list( @@ -2602,7 +2602,7 @@ def test_credit_notes_void_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.credit_notes.void_credit_note("cn_xxxxxxxxxxxxx") @@ -2636,7 +2636,7 @@ def test_customer_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customer_sessions.create( @@ -2676,7 +2676,7 @@ def test_customers_balance_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.balance_transactions.list( @@ -2712,7 +2712,7 @@ def test_customers_balance_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.balance_transactions.retrieve( @@ -2750,7 +2750,7 @@ def test_customers_balance_transactions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.balance_transactions.create( @@ -2789,7 +2789,7 @@ def test_customers_balance_transactions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.balance_transactions.update( @@ -2824,7 +2824,7 @@ def test_customers_cash_balance_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.cash_balance.retrieve("cus_123") @@ -2858,7 +2858,7 @@ def test_customers_cash_balance_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.cash_balance.update( @@ -2890,7 +2890,7 @@ def test_customers_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.delete("cus_xxxxxxxxxxxxx") @@ -2929,7 +2929,7 @@ def test_customers_funding_instructions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.funding_instructions.create( @@ -2969,7 +2969,7 @@ def test_customers_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.list({"limit": 3}) @@ -2998,7 +2998,7 @@ def test_customers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.list({"limit": 3}) @@ -3026,7 +3026,7 @@ def test_customers_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.retrieve("cus_xxxxxxxxxxxxx") @@ -3060,7 +3060,7 @@ def test_customers_payment_methods_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_methods.list( @@ -3097,7 +3097,7 @@ def test_customers_payment_methods_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_methods.list( @@ -3131,7 +3131,7 @@ def test_customers_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.create( @@ -3168,7 +3168,7 @@ def test_customers_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.update( @@ -3205,7 +3205,7 @@ def test_customers_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.search( @@ -3242,7 +3242,7 @@ def test_customers_search_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.search( @@ -3279,7 +3279,7 @@ def test_customers_sources_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.sources.detach( @@ -3315,7 +3315,7 @@ def test_customers_sources_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.sources.detach( @@ -3353,7 +3353,7 @@ def test_customers_sources_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.list( @@ -3391,7 +3391,7 @@ def test_customers_sources_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.list( @@ -3427,7 +3427,7 @@ def test_customers_sources_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.retrieve( @@ -3463,7 +3463,7 @@ def test_customers_sources_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.retrieve( @@ -3501,7 +3501,7 @@ def test_customers_sources_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.update( @@ -3540,7 +3540,7 @@ def test_customers_sources_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.create( @@ -3578,7 +3578,7 @@ def test_customers_sources_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.create( @@ -3617,7 +3617,7 @@ def test_customers_sources_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.update( @@ -3657,7 +3657,7 @@ def test_customers_sources_post_5_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.payment_sources.update( @@ -3695,7 +3695,7 @@ def test_customers_tax_ids_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.tax_ids.delete( @@ -3732,7 +3732,7 @@ def test_customers_tax_ids_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.tax_ids.list( @@ -3768,7 +3768,7 @@ def test_customers_tax_ids_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.tax_ids.retrieve( @@ -3806,7 +3806,7 @@ def test_customers_tax_ids_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.customers.tax_ids.create( @@ -3840,7 +3840,7 @@ def test_disputes_close_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.disputes.close("dp_xxxxxxxxxxxxx") @@ -3869,7 +3869,7 @@ def test_disputes_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.disputes.list({"limit": 3}) @@ -3897,7 +3897,7 @@ def test_disputes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.disputes.retrieve("dp_xxxxxxxxxxxxx") @@ -3929,7 +3929,7 @@ def test_disputes_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.disputes.update( @@ -3962,7 +3962,7 @@ def test_events_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.events.list({"limit": 3}) @@ -3990,7 +3990,7 @@ def test_events_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.events.retrieve("evt_xxxxxxxxxxxxx") @@ -4019,7 +4019,7 @@ def test_file_links_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.file_links.list({"limit": 3}) @@ -4047,7 +4047,7 @@ def test_file_links_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.file_links.retrieve("link_xxxxxxxxxxxxx") @@ -4076,7 +4076,7 @@ def test_file_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.file_links.create({"file": "file_xxxxxxxxxxxxx"}) @@ -4109,7 +4109,7 @@ def test_file_links_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.file_links.update( @@ -4140,7 +4140,7 @@ def test_files_get_service(self, http_client_mock: HTTPClientMock) -> None: ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.files.list({"limit": 3}) @@ -4168,7 +4168,7 @@ def test_files_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.files.retrieve("file_xxxxxxxxxxxxx") @@ -4199,7 +4199,7 @@ def test_files_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.files.create( @@ -4234,7 +4234,7 @@ def test_financial_connections_accounts_disconnect_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.disconnect("fca_xyz") @@ -4264,7 +4264,7 @@ def test_financial_connections_accounts_disconnect_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.disconnect("fca_xxxxxxxxxxxxx") @@ -4294,7 +4294,7 @@ def test_financial_connections_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.list() @@ -4324,7 +4324,7 @@ def test_financial_connections_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.retrieve("fca_xyz") @@ -4357,7 +4357,7 @@ def test_financial_connections_accounts_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.list( @@ -4391,7 +4391,7 @@ def test_financial_connections_accounts_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.retrieve("fca_xxxxxxxxxxxxx") @@ -4425,7 +4425,7 @@ def test_financial_connections_accounts_owners_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.owners.list( @@ -4463,7 +4463,7 @@ def test_financial_connections_accounts_owners_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.owners.list( @@ -4500,7 +4500,7 @@ def test_financial_connections_accounts_refresh_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.refresh( @@ -4538,7 +4538,7 @@ def test_financial_connections_accounts_subscribe_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.subscribe( @@ -4576,7 +4576,7 @@ def test_financial_connections_accounts_unsubscribe_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.accounts.unsubscribe( @@ -4610,7 +4610,7 @@ def test_financial_connections_sessions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.sessions.retrieve("fcsess_xyz") @@ -4640,7 +4640,7 @@ def test_financial_connections_sessions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.sessions.retrieve("fcsess_xxxxxxxxxxxxx") @@ -4674,7 +4674,7 @@ def test_financial_connections_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.sessions.create( @@ -4718,7 +4718,7 @@ def test_financial_connections_sessions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.sessions.create( @@ -4758,7 +4758,7 @@ def test_financial_connections_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.transactions.retrieve("tr_123") @@ -4789,7 +4789,7 @@ def test_financial_connections_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.financial_connections.transactions.list({"account": "fca_xyz"}) @@ -4820,7 +4820,7 @@ def test_identity_verification_reports_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_reports.list({"limit": 3}) @@ -4850,7 +4850,7 @@ def test_identity_verification_reports_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_reports.retrieve("vr_xxxxxxxxxxxxx") @@ -4880,7 +4880,7 @@ def test_identity_verification_sessions_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_sessions.cancel("vs_xxxxxxxxxxxxx") @@ -4911,7 +4911,7 @@ def test_identity_verification_sessions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_sessions.list({"limit": 3}) @@ -4941,7 +4941,7 @@ def test_identity_verification_sessions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_sessions.retrieve("vs_xxxxxxxxxxxxx") @@ -4972,7 +4972,7 @@ def test_identity_verification_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_sessions.create({"type": "document"}) @@ -5007,7 +5007,7 @@ def test_identity_verification_sessions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_sessions.update( @@ -5041,7 +5041,7 @@ def test_identity_verification_sessions_redact_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.identity.verification_sessions.redact("vs_xxxxxxxxxxxxx") @@ -5071,7 +5071,7 @@ def test_invoiceitems_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoice_items.delete("ii_xxxxxxxxxxxxx") @@ -5100,7 +5100,7 @@ def test_invoiceitems_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoice_items.list({"limit": 3}) @@ -5130,7 +5130,7 @@ def test_invoiceitems_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoice_items.retrieve("ii_xxxxxxxxxxxxx") @@ -5162,7 +5162,7 @@ def test_invoiceitems_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoice_items.create( @@ -5202,7 +5202,7 @@ def test_invoiceitems_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoice_items.update( @@ -5234,7 +5234,7 @@ def test_invoices_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.delete("in_xxxxxxxxxxxxx") @@ -5264,7 +5264,7 @@ def test_invoices_finalize_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.finalize_invoice("in_xxxxxxxxxxxxx") @@ -5293,7 +5293,7 @@ def test_invoices_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.list({"limit": 3}) @@ -5321,7 +5321,7 @@ def test_invoices_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.retrieve("in_xxxxxxxxxxxxx") @@ -5353,7 +5353,7 @@ def test_invoices_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.retrieve( @@ -5386,7 +5386,7 @@ def test_invoices_mark_uncollectible_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.mark_uncollectible("in_xxxxxxxxxxxxx") @@ -5414,7 +5414,7 @@ def test_invoices_pay_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.pay("in_xxxxxxxxxxxxx") @@ -5443,7 +5443,7 @@ def test_invoices_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.create({"customer": "cus_xxxxxxxxxxxxx"}) @@ -5476,7 +5476,7 @@ def test_invoices_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.update( @@ -5513,7 +5513,7 @@ def test_invoices_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.search( @@ -5547,7 +5547,7 @@ def test_invoices_send_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.send_invoice("in_xxxxxxxxxxxxx") @@ -5578,7 +5578,7 @@ def test_invoices_upcoming_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.upcoming({"customer": "cus_9utnxg47pWjV1e"}) @@ -5608,7 +5608,7 @@ def test_invoices_void_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.invoices.void_invoice("in_xxxxxxxxxxxxx") @@ -5638,7 +5638,7 @@ def test_issuing_authorizations_approve_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.authorizations.approve("iauth_xxxxxxxxxxxxx") @@ -5668,7 +5668,7 @@ def test_issuing_authorizations_decline_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.authorizations.decline("iauth_xxxxxxxxxxxxx") @@ -5699,7 +5699,7 @@ def test_issuing_authorizations_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.authorizations.list({"limit": 3}) @@ -5729,7 +5729,7 @@ def test_issuing_authorizations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.authorizations.retrieve("iauth_xxxxxxxxxxxxx") @@ -5763,7 +5763,7 @@ def test_issuing_authorizations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.authorizations.update( @@ -5798,7 +5798,7 @@ def test_issuing_cardholders_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cardholders.list({"limit": 3}) @@ -5828,7 +5828,7 @@ def test_issuing_cardholders_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cardholders.retrieve("ich_xxxxxxxxxxxxx") @@ -5873,7 +5873,7 @@ def test_issuing_cardholders_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cardholders.create( @@ -5924,7 +5924,7 @@ def test_issuing_cardholders_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cardholders.update( @@ -5957,7 +5957,7 @@ def test_issuing_cards_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cards.list({"limit": 3}) @@ -5987,7 +5987,7 @@ def test_issuing_cards_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cards.retrieve("ic_xxxxxxxxxxxxx") @@ -6022,7 +6022,7 @@ def test_issuing_cards_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cards.create( @@ -6063,7 +6063,7 @@ def test_issuing_cards_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.cards.update( @@ -6098,7 +6098,7 @@ def test_issuing_disputes_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.disputes.list({"limit": 3}) @@ -6128,7 +6128,7 @@ def test_issuing_disputes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.disputes.retrieve("idp_xxxxxxxxxxxxx") @@ -6165,7 +6165,7 @@ def test_issuing_disputes_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.disputes.create( @@ -6206,7 +6206,7 @@ def test_issuing_disputes_submit_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.disputes.submit("idp_xxxxxxxxxxxxx") @@ -6237,7 +6237,7 @@ def test_issuing_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.transactions.list({"limit": 3}) @@ -6267,7 +6267,7 @@ def test_issuing_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.transactions.retrieve("ipi_xxxxxxxxxxxxx") @@ -6301,7 +6301,7 @@ def test_issuing_transactions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.issuing.transactions.update( @@ -6333,7 +6333,7 @@ def test_mandates_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.mandates.retrieve("mandate_xxxxxxxxxxxxx") @@ -6363,7 +6363,7 @@ def test_payment_intents_apply_customer_balance_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.apply_customer_balance("pi_xxxxxxxxxxxxx") @@ -6393,7 +6393,7 @@ def test_payment_intents_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.cancel("pi_xxxxxxxxxxxxx") @@ -6423,7 +6423,7 @@ def test_payment_intents_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.capture("pi_xxxxxxxxxxxxx") @@ -6457,7 +6457,7 @@ def test_payment_intents_confirm_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.confirm( @@ -6492,7 +6492,7 @@ def test_payment_intents_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.list({"limit": 3}) @@ -6522,7 +6522,7 @@ def test_payment_intents_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.retrieve("pi_xxxxxxxxxxxxx") @@ -6556,7 +6556,7 @@ def test_payment_intents_increment_authorization_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.increment_authorization( @@ -6595,7 +6595,7 @@ def test_payment_intents_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.create( @@ -6637,7 +6637,7 @@ def test_payment_intents_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.create( @@ -6678,7 +6678,7 @@ def test_payment_intents_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.update( @@ -6717,7 +6717,7 @@ def test_payment_intents_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.create( @@ -6760,7 +6760,7 @@ def test_payment_intents_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.search( @@ -6794,7 +6794,7 @@ def test_payment_intents_verify_microdeposits_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.verify_microdeposits("pi_xxxxxxxxxxxxx") @@ -6828,7 +6828,7 @@ def test_payment_intents_verify_microdeposits_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_intents.verify_microdeposits( @@ -6860,7 +6860,7 @@ def test_payment_links_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_links.retrieve("pl_xyz") @@ -6891,7 +6891,7 @@ def test_payment_links_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_links.list({"limit": 3}) @@ -6921,7 +6921,7 @@ def test_payment_links_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_links.retrieve("plink_xxxxxxxxxxxxx") @@ -6951,7 +6951,7 @@ def test_payment_links_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_links.line_items.list("pl_xyz") @@ -6984,7 +6984,7 @@ def test_payment_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_links.create( @@ -7024,7 +7024,7 @@ def test_payment_links_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_links.create( @@ -7065,7 +7065,7 @@ def test_payment_links_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_links.update( @@ -7100,7 +7100,7 @@ def test_payment_method_configurations_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_method_configurations.list({"application": "foo"}) @@ -7130,7 +7130,7 @@ def test_payment_method_configurations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_method_configurations.retrieve("foo") @@ -7164,7 +7164,7 @@ def test_payment_method_configurations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_method_configurations.create( @@ -7204,7 +7204,7 @@ def test_payment_method_configurations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_method_configurations.update( @@ -7242,7 +7242,7 @@ def test_payment_methods_attach_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_methods.attach( @@ -7276,7 +7276,7 @@ def test_payment_methods_detach_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_methods.detach("pm_xxxxxxxxxxxxx") @@ -7310,7 +7310,7 @@ def test_payment_methods_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_methods.list( @@ -7345,7 +7345,7 @@ def test_payment_methods_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_methods.retrieve("pm_xxxxxxxxxxxxx") @@ -7384,7 +7384,7 @@ def test_payment_methods_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_methods.create( @@ -7429,7 +7429,7 @@ def test_payment_methods_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payment_methods.update( @@ -7463,7 +7463,7 @@ def test_payouts_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payouts.cancel("po_xxxxxxxxxxxxx") @@ -7492,7 +7492,7 @@ def test_payouts_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payouts.list({"limit": 3}) @@ -7520,7 +7520,7 @@ def test_payouts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payouts.retrieve("po_xxxxxxxxxxxxx") @@ -7552,7 +7552,7 @@ def test_payouts_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payouts.create({"amount": 1100, "currency": "usd"}) @@ -7585,7 +7585,7 @@ def test_payouts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payouts.update( @@ -7619,7 +7619,7 @@ def test_payouts_reverse_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.payouts.reverse("po_xxxxxxxxxxxxx") @@ -7647,7 +7647,7 @@ def test_plans_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.plans.delete("price_xxxxxxxxxxxxx") @@ -7674,7 +7674,7 @@ def test_plans_get_service(self, http_client_mock: HTTPClientMock) -> None: ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.plans.list({"limit": 3}) @@ -7702,7 +7702,7 @@ def test_plans_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.plans.retrieve("price_xxxxxxxxxxxxx") @@ -7736,7 +7736,7 @@ def test_plans_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.plans.create( @@ -7778,7 +7778,7 @@ def test_plans_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.plans.create( @@ -7818,7 +7818,7 @@ def test_plans_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.plans.update( @@ -7851,7 +7851,7 @@ def test_prices_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.prices.list({"limit": 3}) @@ -7879,7 +7879,7 @@ def test_prices_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.prices.retrieve("price_xxxxxxxxxxxxx") @@ -7917,7 +7917,7 @@ def test_prices_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.prices.create( @@ -7963,7 +7963,7 @@ def test_prices_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.prices.create( @@ -8003,7 +8003,7 @@ def test_prices_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.prices.update( @@ -8038,7 +8038,7 @@ def test_prices_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.prices.search( @@ -8070,7 +8070,7 @@ def test_products_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.products.delete("prod_xxxxxxxxxxxxx") @@ -8099,7 +8099,7 @@ def test_products_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.products.list({"limit": 3}) @@ -8127,7 +8127,7 @@ def test_products_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.products.retrieve("prod_xxxxxxxxxxxxx") @@ -8156,7 +8156,7 @@ def test_products_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.products.create({"name": "Gold Special"}) @@ -8189,7 +8189,7 @@ def test_products_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.products.update( @@ -8226,7 +8226,7 @@ def test_products_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.products.search( @@ -8261,7 +8261,7 @@ def test_promotion_codes_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.promotion_codes.list({"limit": 3}) @@ -8291,7 +8291,7 @@ def test_promotion_codes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.promotion_codes.retrieve("promo_xxxxxxxxxxxxx") @@ -8322,7 +8322,7 @@ def test_promotion_codes_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.promotion_codes.create({"coupon": "Z4OV52SU"}) @@ -8357,7 +8357,7 @@ def test_promotion_codes_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.promotion_codes.update( @@ -8391,7 +8391,7 @@ def test_quotes_accept_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.accept("qt_xxxxxxxxxxxxx") @@ -8421,7 +8421,7 @@ def test_quotes_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.cancel("qt_xxxxxxxxxxxxx") @@ -8451,7 +8451,7 @@ def test_quotes_finalize_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.finalize_quote("qt_xxxxxxxxxxxxx") @@ -8480,7 +8480,7 @@ def test_quotes_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.list({"limit": 3}) @@ -8508,7 +8508,7 @@ def test_quotes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.retrieve("qt_xxxxxxxxxxxxx") @@ -8538,7 +8538,7 @@ def test_quotes_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.line_items.list("qt_xxxxxxxxxxxxx") @@ -8549,30 +8549,28 @@ def test_quotes_line_items_get_service( api_base="https://api.stripe.com", ) - def test_quotes_pdf_get( - self, http_client_mock_streaming: HTTPClientMock - ) -> None: + def test_quotes_pdf_get(self, http_client_mock: HTTPClientMock) -> None: stripe.Quote.pdf("qt_xxxxxxxxxxxxx") - http_client_mock_streaming.assert_requested( + http_client_mock.assert_requested( "get", path="/v1/quotes/qt_xxxxxxxxxxxxx/pdf", query_string="", ) def test_quotes_pdf_get_service( - self, http_client_mock_streaming: HTTPClientMock + self, http_client_mock: HTTPClientMock ) -> None: - http_client_mock_streaming.stub_request( + http_client_mock.stub_request( "get", "/v1/quotes/qt_xxxxxxxxxxxxx/pdf", ) client = StripeClient( "sk_test_123", - http_client=http_client_mock_streaming.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.pdf("qt_xxxxxxxxxxxxx") - http_client_mock_streaming.assert_requested( + http_client_mock.assert_requested( "get", path="/v1/quotes/qt_xxxxxxxxxxxxx/pdf", query_string="", @@ -8600,7 +8598,7 @@ def test_quotes_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.create( @@ -8640,7 +8638,7 @@ def test_quotes_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.quotes.update( @@ -8675,7 +8673,7 @@ def test_radar_early_fraud_warnings_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.early_fraud_warnings.list({"limit": 3}) @@ -8705,7 +8703,7 @@ def test_radar_early_fraud_warnings_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.early_fraud_warnings.retrieve("issfr_xxxxxxxxxxxxx") @@ -8735,7 +8733,7 @@ def test_radar_value_list_items_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_list_items.delete("rsli_xxxxxxxxxxxxx") @@ -8769,7 +8767,7 @@ def test_radar_value_list_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_list_items.list( @@ -8804,7 +8802,7 @@ def test_radar_value_list_items_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_list_items.retrieve("rsli_xxxxxxxxxxxxx") @@ -8838,7 +8836,7 @@ def test_radar_value_list_items_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_list_items.create( @@ -8874,7 +8872,7 @@ def test_radar_value_lists_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_lists.delete("rsl_xxxxxxxxxxxxx") @@ -8905,7 +8903,7 @@ def test_radar_value_lists_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_lists.list({"limit": 3}) @@ -8935,7 +8933,7 @@ def test_radar_value_lists_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_lists.retrieve("rsl_xxxxxxxxxxxxx") @@ -8970,7 +8968,7 @@ def test_radar_value_lists_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_lists.create( @@ -9011,7 +9009,7 @@ def test_radar_value_lists_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.radar.value_lists.update( @@ -9045,7 +9043,7 @@ def test_refunds_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.refunds.cancel("re_xxxxxxxxxxxxx") @@ -9074,7 +9072,7 @@ def test_refunds_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.refunds.list({"limit": 3}) @@ -9102,7 +9100,7 @@ def test_refunds_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.refunds.retrieve("re_xxxxxxxxxxxxx") @@ -9131,7 +9129,7 @@ def test_refunds_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.refunds.create({"charge": "ch_xxxxxxxxxxxxx"}) @@ -9164,7 +9162,7 @@ def test_refunds_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.refunds.update( @@ -9199,7 +9197,7 @@ def test_reporting_report_runs_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reporting.report_runs.list({"limit": 3}) @@ -9229,7 +9227,7 @@ def test_reporting_report_runs_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reporting.report_runs.retrieve("frr_xxxxxxxxxxxxx") @@ -9266,7 +9264,7 @@ def test_reporting_report_runs_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reporting.report_runs.create( @@ -9305,7 +9303,7 @@ def test_reporting_report_types_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reporting.report_types.list() @@ -9335,7 +9333,7 @@ def test_reporting_report_types_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reporting.report_types.retrieve("balance.summary.1") @@ -9365,7 +9363,7 @@ def test_reviews_approve_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reviews.approve("prv_xxxxxxxxxxxxx") @@ -9394,7 +9392,7 @@ def test_reviews_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reviews.list({"limit": 3}) @@ -9422,7 +9420,7 @@ def test_reviews_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.reviews.retrieve("prv_xxxxxxxxxxxxx") @@ -9456,7 +9454,7 @@ def test_setup_attempts_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_attempts.list({"limit": 3, "setup_intent": "si_xyz"}) @@ -9486,7 +9484,7 @@ def test_setup_intents_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.cancel("seti_xxxxxxxxxxxxx") @@ -9520,7 +9518,7 @@ def test_setup_intents_confirm_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.confirm( @@ -9553,7 +9551,7 @@ def test_setup_intents_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.list({"limit": 3}) @@ -9583,7 +9581,7 @@ def test_setup_intents_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.retrieve("seti_xxxxxxxxxxxxx") @@ -9614,7 +9612,7 @@ def test_setup_intents_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.create({"payment_method_types": ["card"]}) @@ -9649,7 +9647,7 @@ def test_setup_intents_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.update( @@ -9683,7 +9681,7 @@ def test_setup_intents_verify_microdeposits_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.verify_microdeposits("seti_xxxxxxxxxxxxx") @@ -9717,7 +9715,7 @@ def test_setup_intents_verify_microdeposits_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.setup_intents.verify_microdeposits( @@ -9751,7 +9749,7 @@ def test_shipping_rates_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.shipping_rates.list() @@ -9782,7 +9780,7 @@ def test_shipping_rates_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.shipping_rates.list({"limit": 3}) @@ -9812,7 +9810,7 @@ def test_shipping_rates_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.shipping_rates.retrieve("shr_xxxxxxxxxxxxx") @@ -9847,7 +9845,7 @@ def test_shipping_rates_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.shipping_rates.create( @@ -9889,7 +9887,7 @@ def test_shipping_rates_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.shipping_rates.create( @@ -9930,7 +9928,7 @@ def test_shipping_rates_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.shipping_rates.update( @@ -9965,7 +9963,7 @@ def test_sigma_scheduled_query_runs_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.sigma.scheduled_query_runs.list({"limit": 3}) @@ -9995,7 +9993,7 @@ def test_sigma_scheduled_query_runs_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.sigma.scheduled_query_runs.retrieve("sqr_xxxxxxxxxxxxx") @@ -10023,7 +10021,7 @@ def test_sources_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.sources.retrieve("src_xxxxxxxxxxxxx") @@ -10051,7 +10049,7 @@ def test_sources_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.sources.retrieve("src_xxxxxxxxxxxxx") @@ -10083,7 +10081,7 @@ def test_sources_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.sources.update( @@ -10117,7 +10115,7 @@ def test_subscription_items_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_items.delete("si_xxxxxxxxxxxxx") @@ -10148,7 +10146,7 @@ def test_subscription_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_items.list({"subscription": "sub_xxxxxxxxxxxxx"}) @@ -10178,7 +10176,7 @@ def test_subscription_items_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_items.retrieve("si_xxxxxxxxxxxxx") @@ -10213,7 +10211,7 @@ def test_subscription_items_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_items.create( @@ -10254,7 +10252,7 @@ def test_subscription_items_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_items.update( @@ -10292,7 +10290,7 @@ def test_subscription_items_usage_record_summaries_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_items.usage_record_summaries.list( @@ -10330,7 +10328,7 @@ def test_subscription_items_usage_records_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_items.usage_records.create( @@ -10364,7 +10362,7 @@ def test_subscription_schedules_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_schedules.cancel("sub_sched_xxxxxxxxxxxxx") @@ -10395,7 +10393,7 @@ def test_subscription_schedules_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_schedules.list({"limit": 3}) @@ -10425,7 +10423,7 @@ def test_subscription_schedules_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_schedules.retrieve("sub_sched_xxxxxxxxxxxxx") @@ -10466,7 +10464,7 @@ def test_subscription_schedules_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_schedules.create( @@ -10515,7 +10513,7 @@ def test_subscription_schedules_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_schedules.update( @@ -10549,7 +10547,7 @@ def test_subscription_schedules_release_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscription_schedules.release("sub_sched_xxxxxxxxxxxxx") @@ -10579,7 +10577,7 @@ def test_subscriptions_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscriptions.cancel("sub_xxxxxxxxxxxxx") @@ -10609,7 +10607,7 @@ def test_subscriptions_discount_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscriptions.delete_discount("sub_xyz") @@ -10638,7 +10636,7 @@ def test_subscriptions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscriptions.list({"limit": 3}) @@ -10668,7 +10666,7 @@ def test_subscriptions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscriptions.retrieve("sub_xxxxxxxxxxxxx") @@ -10702,7 +10700,7 @@ def test_subscriptions_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscriptions.create( @@ -10742,7 +10740,7 @@ def test_subscriptions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscriptions.update( @@ -10779,7 +10777,7 @@ def test_subscriptions_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.subscriptions.search( @@ -10813,7 +10811,7 @@ def test_tax_calculations_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.calculations.line_items.list("xxx") @@ -10857,7 +10855,7 @@ def test_tax_calculations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.calculations.create( @@ -10902,7 +10900,7 @@ def test_tax_codes_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax_codes.list({"limit": 3}) @@ -10930,7 +10928,7 @@ def test_tax_codes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax_codes.retrieve("txcd_xxxxxxxxxxxxx") @@ -10959,7 +10957,7 @@ def test_tax_rates_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax_rates.list({"limit": 3}) @@ -10987,7 +10985,7 @@ def test_tax_rates_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax_rates.retrieve("txr_xxxxxxxxxxxxx") @@ -11022,7 +11020,7 @@ def test_tax_rates_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax_rates.create( @@ -11063,7 +11061,7 @@ def test_tax_rates_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax_rates.update( @@ -11098,7 +11096,7 @@ def test_tax_registrations_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.registrations.list({"status": "all"}) @@ -11133,7 +11131,7 @@ def test_tax_registrations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.registrations.create( @@ -11174,7 +11172,7 @@ def test_tax_registrations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.registrations.update( @@ -11206,7 +11204,7 @@ def test_tax_settings_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.settings.retrieve() @@ -11235,7 +11233,7 @@ def test_tax_settings_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.settings.update({"defaults": {"tax_code": "txcd_10000000"}}) @@ -11270,7 +11268,7 @@ def test_tax_transactions_create_from_calculation_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tax.transactions.create_from_calculation( @@ -11306,7 +11304,7 @@ def test_terminal_configurations_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.delete("uc_123") @@ -11336,7 +11334,7 @@ def test_terminal_configurations_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.delete("tmc_xxxxxxxxxxxxx") @@ -11366,7 +11364,7 @@ def test_terminal_configurations_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.list() @@ -11396,7 +11394,7 @@ def test_terminal_configurations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.retrieve("uc_123") @@ -11427,7 +11425,7 @@ def test_terminal_configurations_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.list({"limit": 3}) @@ -11457,7 +11455,7 @@ def test_terminal_configurations_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.retrieve("tmc_xxxxxxxxxxxxx") @@ -11487,7 +11485,7 @@ def test_terminal_configurations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.create() @@ -11521,7 +11519,7 @@ def test_terminal_configurations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.update( @@ -11558,7 +11556,7 @@ def test_terminal_configurations_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.create( @@ -11597,7 +11595,7 @@ def test_terminal_configurations_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.configurations.update( @@ -11631,7 +11629,7 @@ def test_terminal_connection_tokens_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.connection_tokens.create() @@ -11661,7 +11659,7 @@ def test_terminal_locations_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.locations.delete("tml_xxxxxxxxxxxxx") @@ -11692,7 +11690,7 @@ def test_terminal_locations_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.locations.list({"limit": 3}) @@ -11722,7 +11720,7 @@ def test_terminal_locations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.locations.retrieve("tml_xxxxxxxxxxxxx") @@ -11762,7 +11760,7 @@ def test_terminal_locations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.locations.create( @@ -11808,7 +11806,7 @@ def test_terminal_locations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.locations.update( @@ -11842,7 +11840,7 @@ def test_terminal_readers_cancel_action_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.cancel_action("tmr_xxxxxxxxxxxxx") @@ -11872,7 +11870,7 @@ def test_terminal_readers_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.delete("tmr_xxxxxxxxxxxxx") @@ -11903,7 +11901,7 @@ def test_terminal_readers_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.list({"limit": 3}) @@ -11933,7 +11931,7 @@ def test_terminal_readers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.retrieve("tmr_xxxxxxxxxxxxx") @@ -11968,7 +11966,7 @@ def test_terminal_readers_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.create( @@ -12009,7 +12007,7 @@ def test_terminal_readers_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.update( @@ -12047,7 +12045,7 @@ def test_terminal_readers_process_payment_intent_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.process_payment_intent( @@ -12086,7 +12084,7 @@ def test_terminal_readers_process_setup_intent_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.terminal.readers.process_setup_intent( @@ -12128,7 +12126,7 @@ def test_test_helpers_customers_fund_cash_balance_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.customers.fund_cash_balance( @@ -12201,7 +12199,7 @@ def test_test_helpers_issuing_authorizations_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.capture( @@ -12274,7 +12272,7 @@ def test_test_helpers_issuing_authorizations_expire_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.expire( @@ -12311,7 +12309,7 @@ def test_test_helpers_issuing_authorizations_increment_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.increment( @@ -12371,7 +12369,7 @@ def test_test_helpers_issuing_authorizations_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.create( @@ -12433,7 +12431,7 @@ def test_test_helpers_issuing_authorizations_reverse_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.reverse( @@ -12467,7 +12465,7 @@ def test_test_helpers_issuing_cards_shipping_deliver_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.cards.deliver_card("card_123") @@ -12497,7 +12495,7 @@ def test_test_helpers_issuing_cards_shipping_fail_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.cards.fail_card("card_123") @@ -12527,7 +12525,7 @@ def test_test_helpers_issuing_cards_shipping_return_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.cards.return_card("card_123") @@ -12557,7 +12555,7 @@ def test_test_helpers_issuing_cards_shipping_ship_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.cards.ship_card("card_123") @@ -12636,7 +12634,7 @@ def test_test_helpers_issuing_transactions_create_force_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.transactions.create_force_capture( @@ -12766,7 +12764,7 @@ def test_test_helpers_issuing_transactions_create_unlinked_refund_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.transactions.create_unlinked_refund( @@ -12851,7 +12849,7 @@ def test_test_helpers_issuing_transactions_refund_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.issuing.transactions.refund( @@ -12885,7 +12883,7 @@ def test_test_helpers_refunds_expire_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.refunds.expire("re_123") @@ -12919,7 +12917,7 @@ def test_test_helpers_test_clocks_advance_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.advance( @@ -12957,7 +12955,7 @@ def test_test_helpers_test_clocks_advance_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.advance( @@ -12991,7 +12989,7 @@ def test_test_helpers_test_clocks_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.delete("clock_xyz") @@ -13021,7 +13019,7 @@ def test_test_helpers_test_clocks_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.delete("clock_xxxxxxxxxxxxx") @@ -13051,7 +13049,7 @@ def test_test_helpers_test_clocks_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.list() @@ -13081,7 +13079,7 @@ def test_test_helpers_test_clocks_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.retrieve("clock_xyz") @@ -13112,7 +13110,7 @@ def test_test_helpers_test_clocks_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.list({"limit": 3}) @@ -13142,7 +13140,7 @@ def test_test_helpers_test_clocks_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.retrieve("clock_xxxxxxxxxxxxx") @@ -13176,7 +13174,7 @@ def test_test_helpers_test_clocks_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.create( @@ -13213,7 +13211,7 @@ def test_test_helpers_test_clocks_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.test_clocks.create({"frozen_time": 1577836800}) @@ -13248,7 +13246,7 @@ def test_test_helpers_treasury_inbound_transfers_fail_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.inbound_transfers.fail( @@ -13284,7 +13282,7 @@ def test_test_helpers_treasury_inbound_transfers_return_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.inbound_transfers.return_inbound_transfer( @@ -13316,7 +13314,7 @@ def test_test_helpers_treasury_inbound_transfers_succeed_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.inbound_transfers.succeed("ibt_123") @@ -13346,7 +13344,7 @@ def test_test_helpers_treasury_outbound_transfers_fail_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.outbound_transfers.fail("obt_123") @@ -13376,7 +13374,7 @@ def test_test_helpers_treasury_outbound_transfers_post_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.outbound_transfers.post("obt_123") @@ -13410,7 +13408,7 @@ def test_test_helpers_treasury_outbound_transfers_return_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.outbound_transfers.return_outbound_transfer( @@ -13450,7 +13448,7 @@ def test_test_helpers_treasury_received_credits_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.received_credits.create( @@ -13494,7 +13492,7 @@ def test_test_helpers_treasury_received_debits_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.test_helpers.treasury.received_debits.create( @@ -13530,7 +13528,7 @@ def test_tokens_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tokens.retrieve("tok_xxxx") @@ -13566,7 +13564,7 @@ def test_tokens_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tokens.create( @@ -13614,7 +13612,7 @@ def test_tokens_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tokens.create( @@ -13655,7 +13653,7 @@ def test_tokens_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tokens.create({"pii": {"id_number": "000000000"}}) @@ -13690,7 +13688,7 @@ def test_tokens_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tokens.create( @@ -13733,7 +13731,7 @@ def test_tokens_post_5_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tokens.create( @@ -13771,7 +13769,7 @@ def test_tokens_post_6_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.tokens.create({"cvc_update": {"cvc": "123"}}) @@ -13802,7 +13800,7 @@ def test_topups_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.topups.cancel("tu_xxxxxxxxxxxxx") @@ -13831,7 +13829,7 @@ def test_topups_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.topups.list({"limit": 3}) @@ -13859,7 +13857,7 @@ def test_topups_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.topups.retrieve("tu_xxxxxxxxxxxxx") @@ -13893,7 +13891,7 @@ def test_topups_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.topups.create( @@ -13933,7 +13931,7 @@ def test_topups_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.topups.update( @@ -13966,7 +13964,7 @@ def test_transfers_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.list({"limit": 3}) @@ -13994,7 +13992,7 @@ def test_transfers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.retrieve("tr_xxxxxxxxxxxxx") @@ -14028,7 +14026,7 @@ def test_transfers_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.create( @@ -14068,7 +14066,7 @@ def test_transfers_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.update( @@ -14106,7 +14104,7 @@ def test_transfers_reversals_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.reversals.list( @@ -14142,7 +14140,7 @@ def test_transfers_reversals_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.reversals.retrieve( @@ -14179,7 +14177,7 @@ def test_transfers_reversals_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.reversals.create( @@ -14218,7 +14216,7 @@ def test_transfers_reversals_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.transfers.reversals.update( @@ -14257,7 +14255,7 @@ def test_treasury_credit_reversals_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.credit_reversals.list( @@ -14292,7 +14290,7 @@ def test_treasury_credit_reversals_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.credit_reversals.retrieve("credrev_xxxxxxxxxxxxx") @@ -14325,7 +14323,7 @@ def test_treasury_credit_reversals_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.credit_reversals.create( @@ -14364,7 +14362,7 @@ def test_treasury_debit_reversals_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.debit_reversals.list( @@ -14399,7 +14397,7 @@ def test_treasury_debit_reversals_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.debit_reversals.retrieve("debrev_xxxxxxxxxxxxx") @@ -14430,7 +14428,7 @@ def test_treasury_debit_reversals_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.debit_reversals.create( @@ -14465,7 +14463,7 @@ def test_treasury_financial_accounts_features_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.financial_accounts.features.list("fa_xxxxxxxxxxxxx") @@ -14496,7 +14494,7 @@ def test_treasury_financial_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.financial_accounts.list({"limit": 3}) @@ -14526,7 +14524,7 @@ def test_treasury_financial_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.financial_accounts.retrieve("fa_xxxxxxxxxxxxx") @@ -14560,7 +14558,7 @@ def test_treasury_financial_accounts_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.financial_accounts.create( @@ -14600,7 +14598,7 @@ def test_treasury_financial_accounts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.financial_accounts.update( @@ -14634,7 +14632,7 @@ def test_treasury_inbound_transfers_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.inbound_transfers.cancel("ibt_xxxxxxxxxxxxx") @@ -14668,7 +14666,7 @@ def test_treasury_inbound_transfers_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.inbound_transfers.list( @@ -14703,7 +14701,7 @@ def test_treasury_inbound_transfers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.inbound_transfers.retrieve("ibt_xxxxxxxxxxxxx") @@ -14740,7 +14738,7 @@ def test_treasury_inbound_transfers_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.inbound_transfers.create( @@ -14779,7 +14777,7 @@ def test_treasury_outbound_payments_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_payments.cancel("bot_xxxxxxxxxxxxx") @@ -14813,7 +14811,7 @@ def test_treasury_outbound_payments_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_payments.list( @@ -14848,7 +14846,7 @@ def test_treasury_outbound_payments_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_payments.retrieve("bot_xxxxxxxxxxxxx") @@ -14886,7 +14884,7 @@ def test_treasury_outbound_payments_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_payments.create( @@ -14926,7 +14924,7 @@ def test_treasury_outbound_transfers_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_transfers.cancel("obt_xxxxxxxxxxxxx") @@ -14960,7 +14958,7 @@ def test_treasury_outbound_transfers_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_transfers.list( @@ -14995,7 +14993,7 @@ def test_treasury_outbound_transfers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_transfers.retrieve("obt_xxxxxxxxxxxxx") @@ -15032,7 +15030,7 @@ def test_treasury_outbound_transfers_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.outbound_transfers.create( @@ -15075,7 +15073,7 @@ def test_treasury_received_credits_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.received_credits.list( @@ -15110,7 +15108,7 @@ def test_treasury_received_credits_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.received_credits.retrieve("rc_xxxxxxxxxxxxx") @@ -15144,7 +15142,7 @@ def test_treasury_received_debits_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.received_debits.list( @@ -15179,7 +15177,7 @@ def test_treasury_received_debits_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.received_debits.retrieve("rd_xxxxxxxxxxxxx") @@ -15213,7 +15211,7 @@ def test_treasury_transaction_entries_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.transaction_entries.list( @@ -15248,7 +15246,7 @@ def test_treasury_transaction_entries_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.transaction_entries.retrieve("trxne_xxxxxxxxxxxxx") @@ -15282,7 +15280,7 @@ def test_treasury_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.transactions.list( @@ -15317,7 +15315,7 @@ def test_treasury_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.treasury.transactions.retrieve("trxn_xxxxxxxxxxxxx") @@ -15347,7 +15345,7 @@ def test_webhook_endpoints_delete_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.webhook_endpoints.delete("we_xxxxxxxxxxxxx") @@ -15378,7 +15376,7 @@ def test_webhook_endpoints_get_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.webhook_endpoints.list({"limit": 3}) @@ -15408,7 +15406,7 @@ def test_webhook_endpoints_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.webhook_endpoints.retrieve("we_xxxxxxxxxxxxx") @@ -15442,7 +15440,7 @@ def test_webhook_endpoints_post_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.webhook_endpoints.create( @@ -15482,7 +15480,7 @@ def test_webhook_endpoints_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), + http_client=undefined.get_mock_http_client(), ) client.webhook_endpoints.update( From 7b575c8db393458c5b07728c3c69f38329cd4155 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Fri, 16 Feb 2024 00:27:18 -0800 Subject: [PATCH 3/3] Fix --- tests/test_generated_examples.py | 880 +++++++++++++++---------------- 1 file changed, 440 insertions(+), 440 deletions(-) diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index aaacd3757..b4d180fd5 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -34,7 +34,7 @@ def test_account_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.account_links.create( @@ -72,7 +72,7 @@ def test_accounts_capabilities_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.capabilities.list("acct_xxxxxxxxxxxxx") @@ -105,7 +105,7 @@ def test_accounts_capabilities_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.capabilities.retrieve( @@ -143,7 +143,7 @@ def test_accounts_capabilities_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.capabilities.update( @@ -176,7 +176,7 @@ def test_accounts_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.delete("acct_xxxxxxxxxxxxx") @@ -209,7 +209,7 @@ def test_accounts_external_accounts_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.delete( @@ -245,7 +245,7 @@ def test_accounts_external_accounts_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.delete( @@ -282,7 +282,7 @@ def test_accounts_external_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.list( @@ -320,7 +320,7 @@ def test_accounts_external_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.list( @@ -358,7 +358,7 @@ def test_accounts_external_accounts_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.list( @@ -394,7 +394,7 @@ def test_accounts_external_accounts_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.retrieve( @@ -430,7 +430,7 @@ def test_accounts_external_accounts_get_5_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.retrieve( @@ -467,7 +467,7 @@ def test_accounts_external_accounts_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.create( @@ -505,7 +505,7 @@ def test_accounts_external_accounts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.create( @@ -544,7 +544,7 @@ def test_accounts_external_accounts_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.update( @@ -584,7 +584,7 @@ def test_accounts_external_accounts_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.external_accounts.update( @@ -618,7 +618,7 @@ def test_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.list({"limit": 3}) @@ -646,7 +646,7 @@ def test_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.retrieve("acct_xxxxxxxxxxxxx") @@ -676,7 +676,7 @@ def test_accounts_login_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.login_links.create("acct_xxxxxxxxxxxxx") @@ -709,7 +709,7 @@ def test_accounts_persons_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.persons.delete( @@ -746,7 +746,7 @@ def test_accounts_persons_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.persons.list( @@ -782,7 +782,7 @@ def test_accounts_persons_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.persons.retrieve( @@ -820,7 +820,7 @@ def test_accounts_persons_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.persons.create( @@ -859,7 +859,7 @@ def test_accounts_persons_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.persons.update( @@ -901,7 +901,7 @@ def test_accounts_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.create( @@ -944,7 +944,7 @@ def test_accounts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.update( @@ -982,7 +982,7 @@ def test_accounts_reject_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.accounts.reject( @@ -1017,7 +1017,7 @@ def test_application_fees_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.application_fees.list({"limit": 3}) @@ -1047,7 +1047,7 @@ def test_application_fees_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.application_fees.retrieve("fee_xxxxxxxxxxxxx") @@ -1081,7 +1081,7 @@ def test_application_fees_refunds_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.application_fees.refunds.list( @@ -1117,7 +1117,7 @@ def test_application_fees_refunds_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.application_fees.refunds.retrieve( @@ -1150,7 +1150,7 @@ def test_application_fees_refunds_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.application_fees.refunds.create("fee_xxxxxxxxxxxxx") @@ -1185,7 +1185,7 @@ def test_application_fees_refunds_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.application_fees.refunds.update( @@ -1224,7 +1224,7 @@ def test_apps_secrets_delete_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.apps.secrets.delete_where( @@ -1264,7 +1264,7 @@ def test_apps_secrets_find_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.apps.secrets.find( @@ -1301,7 +1301,7 @@ def test_apps_secrets_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.apps.secrets.list({"scope": {"type": "account"}, "limit": 2}) @@ -1335,7 +1335,7 @@ def test_apps_secrets_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.apps.secrets.list({"scope": {"type": "account"}, "limit": 2}) @@ -1368,7 +1368,7 @@ def test_apps_secrets_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.apps.secrets.create( @@ -1410,7 +1410,7 @@ def test_apps_secrets_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.apps.secrets.create( @@ -1448,7 +1448,7 @@ def test_balance_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.balance_transactions.list({"limit": 3}) @@ -1478,7 +1478,7 @@ def test_balance_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.balance_transactions.retrieve("txn_xxxxxxxxxxxxx") @@ -1509,7 +1509,7 @@ def test_billing_portal_configurations_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.billing_portal.configurations.list({"limit": 3}) @@ -1539,7 +1539,7 @@ def test_billing_portal_configurations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.billing_portal.configurations.retrieve("bpc_xxxxxxxxxxxxx") @@ -1582,7 +1582,7 @@ def test_billing_portal_configurations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.billing_portal.configurations.create( @@ -1634,7 +1634,7 @@ def test_billing_portal_configurations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.billing_portal.configurations.update( @@ -1677,7 +1677,7 @@ def test_billing_portal_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.billing_portal.sessions.create( @@ -1713,7 +1713,7 @@ def test_charges_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.charges.capture("ch_xxxxxxxxxxxxx") @@ -1742,7 +1742,7 @@ def test_charges_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.charges.list({"limit": 3}) @@ -1770,7 +1770,7 @@ def test_charges_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.charges.retrieve("ch_xxxxxxxxxxxxx") @@ -1804,7 +1804,7 @@ def test_charges_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.charges.create( @@ -1844,7 +1844,7 @@ def test_charges_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.charges.update( @@ -1881,7 +1881,7 @@ def test_charges_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.charges.search( @@ -1915,7 +1915,7 @@ def test_checkout_sessions_expire_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.checkout.sessions.expire("sess_xyz") @@ -1945,7 +1945,7 @@ def test_checkout_sessions_expire_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.checkout.sessions.expire("cs_test_xxxxxxxxxxxxx") @@ -1976,7 +1976,7 @@ def test_checkout_sessions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.checkout.sessions.list({"limit": 3}) @@ -2006,7 +2006,7 @@ def test_checkout_sessions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.checkout.sessions.retrieve("cs_test_xxxxxxxxxxxxx") @@ -2036,7 +2036,7 @@ def test_checkout_sessions_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.checkout.sessions.line_items.list("sess_xyz") @@ -2083,7 +2083,7 @@ def test_checkout_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.checkout.sessions.create( @@ -2137,7 +2137,7 @@ def test_checkout_sessions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.checkout.sessions.create( @@ -2175,7 +2175,7 @@ def test_country_specs_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.country_specs.list({"limit": 3}) @@ -2205,7 +2205,7 @@ def test_country_specs_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.country_specs.retrieve("US") @@ -2233,7 +2233,7 @@ def test_coupons_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.coupons.delete("Z4OV52SU") @@ -2262,7 +2262,7 @@ def test_coupons_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.coupons.list({"limit": 3}) @@ -2290,7 +2290,7 @@ def test_coupons_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.coupons.retrieve("Z4OV52SU") @@ -2323,7 +2323,7 @@ def test_coupons_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.coupons.create( @@ -2362,7 +2362,7 @@ def test_coupons_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.coupons.update( @@ -2395,7 +2395,7 @@ def test_credit_notes_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.credit_notes.list({"limit": 3}) @@ -2429,7 +2429,7 @@ def test_credit_notes_lines_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.credit_notes.line_items.list( @@ -2470,7 +2470,7 @@ def test_credit_notes_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.credit_notes.create( @@ -2522,7 +2522,7 @@ def test_credit_notes_preview_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.credit_notes.preview( @@ -2567,7 +2567,7 @@ def test_credit_notes_preview_lines_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.credit_notes.preview_lines.list( @@ -2602,7 +2602,7 @@ def test_credit_notes_void_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.credit_notes.void_credit_note("cn_xxxxxxxxxxxxx") @@ -2636,7 +2636,7 @@ def test_customer_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customer_sessions.create( @@ -2676,7 +2676,7 @@ def test_customers_balance_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.balance_transactions.list( @@ -2712,7 +2712,7 @@ def test_customers_balance_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.balance_transactions.retrieve( @@ -2750,7 +2750,7 @@ def test_customers_balance_transactions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.balance_transactions.create( @@ -2789,7 +2789,7 @@ def test_customers_balance_transactions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.balance_transactions.update( @@ -2824,7 +2824,7 @@ def test_customers_cash_balance_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.cash_balance.retrieve("cus_123") @@ -2858,7 +2858,7 @@ def test_customers_cash_balance_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.cash_balance.update( @@ -2890,7 +2890,7 @@ def test_customers_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.delete("cus_xxxxxxxxxxxxx") @@ -2929,7 +2929,7 @@ def test_customers_funding_instructions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.funding_instructions.create( @@ -2969,7 +2969,7 @@ def test_customers_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.list({"limit": 3}) @@ -2998,7 +2998,7 @@ def test_customers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.list({"limit": 3}) @@ -3026,7 +3026,7 @@ def test_customers_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.retrieve("cus_xxxxxxxxxxxxx") @@ -3060,7 +3060,7 @@ def test_customers_payment_methods_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_methods.list( @@ -3097,7 +3097,7 @@ def test_customers_payment_methods_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_methods.list( @@ -3131,7 +3131,7 @@ def test_customers_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.create( @@ -3168,7 +3168,7 @@ def test_customers_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.update( @@ -3205,7 +3205,7 @@ def test_customers_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.search( @@ -3242,7 +3242,7 @@ def test_customers_search_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.search( @@ -3279,7 +3279,7 @@ def test_customers_sources_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.sources.detach( @@ -3315,7 +3315,7 @@ def test_customers_sources_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.sources.detach( @@ -3353,7 +3353,7 @@ def test_customers_sources_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.list( @@ -3391,7 +3391,7 @@ def test_customers_sources_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.list( @@ -3427,7 +3427,7 @@ def test_customers_sources_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.retrieve( @@ -3463,7 +3463,7 @@ def test_customers_sources_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.retrieve( @@ -3501,7 +3501,7 @@ def test_customers_sources_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.update( @@ -3540,7 +3540,7 @@ def test_customers_sources_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.create( @@ -3578,7 +3578,7 @@ def test_customers_sources_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.create( @@ -3617,7 +3617,7 @@ def test_customers_sources_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.update( @@ -3657,7 +3657,7 @@ def test_customers_sources_post_5_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.payment_sources.update( @@ -3695,7 +3695,7 @@ def test_customers_tax_ids_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.tax_ids.delete( @@ -3732,7 +3732,7 @@ def test_customers_tax_ids_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.tax_ids.list( @@ -3768,7 +3768,7 @@ def test_customers_tax_ids_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.tax_ids.retrieve( @@ -3806,7 +3806,7 @@ def test_customers_tax_ids_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.customers.tax_ids.create( @@ -3840,7 +3840,7 @@ def test_disputes_close_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.disputes.close("dp_xxxxxxxxxxxxx") @@ -3869,7 +3869,7 @@ def test_disputes_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.disputes.list({"limit": 3}) @@ -3897,7 +3897,7 @@ def test_disputes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.disputes.retrieve("dp_xxxxxxxxxxxxx") @@ -3929,7 +3929,7 @@ def test_disputes_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.disputes.update( @@ -3962,7 +3962,7 @@ def test_events_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.events.list({"limit": 3}) @@ -3990,7 +3990,7 @@ def test_events_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.events.retrieve("evt_xxxxxxxxxxxxx") @@ -4019,7 +4019,7 @@ def test_file_links_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.file_links.list({"limit": 3}) @@ -4047,7 +4047,7 @@ def test_file_links_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.file_links.retrieve("link_xxxxxxxxxxxxx") @@ -4076,7 +4076,7 @@ def test_file_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.file_links.create({"file": "file_xxxxxxxxxxxxx"}) @@ -4109,7 +4109,7 @@ def test_file_links_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.file_links.update( @@ -4140,7 +4140,7 @@ def test_files_get_service(self, http_client_mock: HTTPClientMock) -> None: ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.files.list({"limit": 3}) @@ -4168,7 +4168,7 @@ def test_files_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.files.retrieve("file_xxxxxxxxxxxxx") @@ -4199,7 +4199,7 @@ def test_files_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.files.create( @@ -4234,7 +4234,7 @@ def test_financial_connections_accounts_disconnect_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.disconnect("fca_xyz") @@ -4264,7 +4264,7 @@ def test_financial_connections_accounts_disconnect_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.disconnect("fca_xxxxxxxxxxxxx") @@ -4294,7 +4294,7 @@ def test_financial_connections_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.list() @@ -4324,7 +4324,7 @@ def test_financial_connections_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.retrieve("fca_xyz") @@ -4357,7 +4357,7 @@ def test_financial_connections_accounts_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.list( @@ -4391,7 +4391,7 @@ def test_financial_connections_accounts_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.retrieve("fca_xxxxxxxxxxxxx") @@ -4425,7 +4425,7 @@ def test_financial_connections_accounts_owners_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.owners.list( @@ -4463,7 +4463,7 @@ def test_financial_connections_accounts_owners_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.owners.list( @@ -4500,7 +4500,7 @@ def test_financial_connections_accounts_refresh_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.refresh( @@ -4538,7 +4538,7 @@ def test_financial_connections_accounts_subscribe_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.subscribe( @@ -4576,7 +4576,7 @@ def test_financial_connections_accounts_unsubscribe_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.accounts.unsubscribe( @@ -4610,7 +4610,7 @@ def test_financial_connections_sessions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.sessions.retrieve("fcsess_xyz") @@ -4640,7 +4640,7 @@ def test_financial_connections_sessions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.sessions.retrieve("fcsess_xxxxxxxxxxxxx") @@ -4674,7 +4674,7 @@ def test_financial_connections_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.sessions.create( @@ -4718,7 +4718,7 @@ def test_financial_connections_sessions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.sessions.create( @@ -4758,7 +4758,7 @@ def test_financial_connections_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.transactions.retrieve("tr_123") @@ -4789,7 +4789,7 @@ def test_financial_connections_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.financial_connections.transactions.list({"account": "fca_xyz"}) @@ -4820,7 +4820,7 @@ def test_identity_verification_reports_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_reports.list({"limit": 3}) @@ -4850,7 +4850,7 @@ def test_identity_verification_reports_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_reports.retrieve("vr_xxxxxxxxxxxxx") @@ -4880,7 +4880,7 @@ def test_identity_verification_sessions_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_sessions.cancel("vs_xxxxxxxxxxxxx") @@ -4911,7 +4911,7 @@ def test_identity_verification_sessions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_sessions.list({"limit": 3}) @@ -4941,7 +4941,7 @@ def test_identity_verification_sessions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_sessions.retrieve("vs_xxxxxxxxxxxxx") @@ -4972,7 +4972,7 @@ def test_identity_verification_sessions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_sessions.create({"type": "document"}) @@ -5007,7 +5007,7 @@ def test_identity_verification_sessions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_sessions.update( @@ -5041,7 +5041,7 @@ def test_identity_verification_sessions_redact_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.identity.verification_sessions.redact("vs_xxxxxxxxxxxxx") @@ -5071,7 +5071,7 @@ def test_invoiceitems_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoice_items.delete("ii_xxxxxxxxxxxxx") @@ -5100,7 +5100,7 @@ def test_invoiceitems_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoice_items.list({"limit": 3}) @@ -5130,7 +5130,7 @@ def test_invoiceitems_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoice_items.retrieve("ii_xxxxxxxxxxxxx") @@ -5162,7 +5162,7 @@ def test_invoiceitems_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoice_items.create( @@ -5202,7 +5202,7 @@ def test_invoiceitems_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoice_items.update( @@ -5234,7 +5234,7 @@ def test_invoices_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.delete("in_xxxxxxxxxxxxx") @@ -5264,7 +5264,7 @@ def test_invoices_finalize_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.finalize_invoice("in_xxxxxxxxxxxxx") @@ -5293,7 +5293,7 @@ def test_invoices_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.list({"limit": 3}) @@ -5321,7 +5321,7 @@ def test_invoices_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.retrieve("in_xxxxxxxxxxxxx") @@ -5353,7 +5353,7 @@ def test_invoices_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.retrieve( @@ -5386,7 +5386,7 @@ def test_invoices_mark_uncollectible_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.mark_uncollectible("in_xxxxxxxxxxxxx") @@ -5414,7 +5414,7 @@ def test_invoices_pay_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.pay("in_xxxxxxxxxxxxx") @@ -5443,7 +5443,7 @@ def test_invoices_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.create({"customer": "cus_xxxxxxxxxxxxx"}) @@ -5476,7 +5476,7 @@ def test_invoices_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.update( @@ -5513,7 +5513,7 @@ def test_invoices_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.search( @@ -5547,7 +5547,7 @@ def test_invoices_send_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.send_invoice("in_xxxxxxxxxxxxx") @@ -5578,7 +5578,7 @@ def test_invoices_upcoming_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.upcoming({"customer": "cus_9utnxg47pWjV1e"}) @@ -5608,7 +5608,7 @@ def test_invoices_void_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.invoices.void_invoice("in_xxxxxxxxxxxxx") @@ -5638,7 +5638,7 @@ def test_issuing_authorizations_approve_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.authorizations.approve("iauth_xxxxxxxxxxxxx") @@ -5668,7 +5668,7 @@ def test_issuing_authorizations_decline_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.authorizations.decline("iauth_xxxxxxxxxxxxx") @@ -5699,7 +5699,7 @@ def test_issuing_authorizations_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.authorizations.list({"limit": 3}) @@ -5729,7 +5729,7 @@ def test_issuing_authorizations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.authorizations.retrieve("iauth_xxxxxxxxxxxxx") @@ -5763,7 +5763,7 @@ def test_issuing_authorizations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.authorizations.update( @@ -5798,7 +5798,7 @@ def test_issuing_cardholders_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cardholders.list({"limit": 3}) @@ -5828,7 +5828,7 @@ def test_issuing_cardholders_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cardholders.retrieve("ich_xxxxxxxxxxxxx") @@ -5873,7 +5873,7 @@ def test_issuing_cardholders_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cardholders.create( @@ -5924,7 +5924,7 @@ def test_issuing_cardholders_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cardholders.update( @@ -5957,7 +5957,7 @@ def test_issuing_cards_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cards.list({"limit": 3}) @@ -5987,7 +5987,7 @@ def test_issuing_cards_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cards.retrieve("ic_xxxxxxxxxxxxx") @@ -6022,7 +6022,7 @@ def test_issuing_cards_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cards.create( @@ -6063,7 +6063,7 @@ def test_issuing_cards_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.cards.update( @@ -6098,7 +6098,7 @@ def test_issuing_disputes_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.disputes.list({"limit": 3}) @@ -6128,7 +6128,7 @@ def test_issuing_disputes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.disputes.retrieve("idp_xxxxxxxxxxxxx") @@ -6165,7 +6165,7 @@ def test_issuing_disputes_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.disputes.create( @@ -6206,7 +6206,7 @@ def test_issuing_disputes_submit_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.disputes.submit("idp_xxxxxxxxxxxxx") @@ -6237,7 +6237,7 @@ def test_issuing_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.transactions.list({"limit": 3}) @@ -6267,7 +6267,7 @@ def test_issuing_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.transactions.retrieve("ipi_xxxxxxxxxxxxx") @@ -6301,7 +6301,7 @@ def test_issuing_transactions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.issuing.transactions.update( @@ -6333,7 +6333,7 @@ def test_mandates_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.mandates.retrieve("mandate_xxxxxxxxxxxxx") @@ -6363,7 +6363,7 @@ def test_payment_intents_apply_customer_balance_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.apply_customer_balance("pi_xxxxxxxxxxxxx") @@ -6393,7 +6393,7 @@ def test_payment_intents_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.cancel("pi_xxxxxxxxxxxxx") @@ -6423,7 +6423,7 @@ def test_payment_intents_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.capture("pi_xxxxxxxxxxxxx") @@ -6457,7 +6457,7 @@ def test_payment_intents_confirm_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.confirm( @@ -6492,7 +6492,7 @@ def test_payment_intents_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.list({"limit": 3}) @@ -6522,7 +6522,7 @@ def test_payment_intents_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.retrieve("pi_xxxxxxxxxxxxx") @@ -6556,7 +6556,7 @@ def test_payment_intents_increment_authorization_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.increment_authorization( @@ -6595,7 +6595,7 @@ def test_payment_intents_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.create( @@ -6637,7 +6637,7 @@ def test_payment_intents_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.create( @@ -6678,7 +6678,7 @@ def test_payment_intents_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.update( @@ -6717,7 +6717,7 @@ def test_payment_intents_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.create( @@ -6760,7 +6760,7 @@ def test_payment_intents_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.search( @@ -6794,7 +6794,7 @@ def test_payment_intents_verify_microdeposits_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.verify_microdeposits("pi_xxxxxxxxxxxxx") @@ -6828,7 +6828,7 @@ def test_payment_intents_verify_microdeposits_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_intents.verify_microdeposits( @@ -6860,7 +6860,7 @@ def test_payment_links_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_links.retrieve("pl_xyz") @@ -6891,7 +6891,7 @@ def test_payment_links_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_links.list({"limit": 3}) @@ -6921,7 +6921,7 @@ def test_payment_links_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_links.retrieve("plink_xxxxxxxxxxxxx") @@ -6951,7 +6951,7 @@ def test_payment_links_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_links.line_items.list("pl_xyz") @@ -6984,7 +6984,7 @@ def test_payment_links_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_links.create( @@ -7024,7 +7024,7 @@ def test_payment_links_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_links.create( @@ -7065,7 +7065,7 @@ def test_payment_links_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_links.update( @@ -7100,7 +7100,7 @@ def test_payment_method_configurations_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_method_configurations.list({"application": "foo"}) @@ -7130,7 +7130,7 @@ def test_payment_method_configurations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_method_configurations.retrieve("foo") @@ -7164,7 +7164,7 @@ def test_payment_method_configurations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_method_configurations.create( @@ -7204,7 +7204,7 @@ def test_payment_method_configurations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_method_configurations.update( @@ -7242,7 +7242,7 @@ def test_payment_methods_attach_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_methods.attach( @@ -7276,7 +7276,7 @@ def test_payment_methods_detach_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_methods.detach("pm_xxxxxxxxxxxxx") @@ -7310,7 +7310,7 @@ def test_payment_methods_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_methods.list( @@ -7345,7 +7345,7 @@ def test_payment_methods_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_methods.retrieve("pm_xxxxxxxxxxxxx") @@ -7384,7 +7384,7 @@ def test_payment_methods_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_methods.create( @@ -7429,7 +7429,7 @@ def test_payment_methods_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payment_methods.update( @@ -7463,7 +7463,7 @@ def test_payouts_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payouts.cancel("po_xxxxxxxxxxxxx") @@ -7492,7 +7492,7 @@ def test_payouts_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payouts.list({"limit": 3}) @@ -7520,7 +7520,7 @@ def test_payouts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payouts.retrieve("po_xxxxxxxxxxxxx") @@ -7552,7 +7552,7 @@ def test_payouts_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payouts.create({"amount": 1100, "currency": "usd"}) @@ -7585,7 +7585,7 @@ def test_payouts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payouts.update( @@ -7619,7 +7619,7 @@ def test_payouts_reverse_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.payouts.reverse("po_xxxxxxxxxxxxx") @@ -7647,7 +7647,7 @@ def test_plans_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.plans.delete("price_xxxxxxxxxxxxx") @@ -7674,7 +7674,7 @@ def test_plans_get_service(self, http_client_mock: HTTPClientMock) -> None: ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.plans.list({"limit": 3}) @@ -7702,7 +7702,7 @@ def test_plans_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.plans.retrieve("price_xxxxxxxxxxxxx") @@ -7736,7 +7736,7 @@ def test_plans_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.plans.create( @@ -7778,7 +7778,7 @@ def test_plans_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.plans.create( @@ -7818,7 +7818,7 @@ def test_plans_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.plans.update( @@ -7851,7 +7851,7 @@ def test_prices_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.prices.list({"limit": 3}) @@ -7879,7 +7879,7 @@ def test_prices_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.prices.retrieve("price_xxxxxxxxxxxxx") @@ -7917,7 +7917,7 @@ def test_prices_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.prices.create( @@ -7963,7 +7963,7 @@ def test_prices_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.prices.create( @@ -8003,7 +8003,7 @@ def test_prices_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.prices.update( @@ -8038,7 +8038,7 @@ def test_prices_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.prices.search( @@ -8070,7 +8070,7 @@ def test_products_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.products.delete("prod_xxxxxxxxxxxxx") @@ -8099,7 +8099,7 @@ def test_products_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.products.list({"limit": 3}) @@ -8127,7 +8127,7 @@ def test_products_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.products.retrieve("prod_xxxxxxxxxxxxx") @@ -8156,7 +8156,7 @@ def test_products_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.products.create({"name": "Gold Special"}) @@ -8189,7 +8189,7 @@ def test_products_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.products.update( @@ -8226,7 +8226,7 @@ def test_products_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.products.search( @@ -8261,7 +8261,7 @@ def test_promotion_codes_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.promotion_codes.list({"limit": 3}) @@ -8291,7 +8291,7 @@ def test_promotion_codes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.promotion_codes.retrieve("promo_xxxxxxxxxxxxx") @@ -8322,7 +8322,7 @@ def test_promotion_codes_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.promotion_codes.create({"coupon": "Z4OV52SU"}) @@ -8357,7 +8357,7 @@ def test_promotion_codes_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.promotion_codes.update( @@ -8391,7 +8391,7 @@ def test_quotes_accept_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.accept("qt_xxxxxxxxxxxxx") @@ -8421,7 +8421,7 @@ def test_quotes_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.cancel("qt_xxxxxxxxxxxxx") @@ -8451,7 +8451,7 @@ def test_quotes_finalize_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.finalize_quote("qt_xxxxxxxxxxxxx") @@ -8480,7 +8480,7 @@ def test_quotes_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.list({"limit": 3}) @@ -8508,7 +8508,7 @@ def test_quotes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.retrieve("qt_xxxxxxxxxxxxx") @@ -8538,7 +8538,7 @@ def test_quotes_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.line_items.list("qt_xxxxxxxxxxxxx") @@ -8566,7 +8566,7 @@ def test_quotes_pdf_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.pdf("qt_xxxxxxxxxxxxx") @@ -8598,7 +8598,7 @@ def test_quotes_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.create( @@ -8638,7 +8638,7 @@ def test_quotes_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.quotes.update( @@ -8673,7 +8673,7 @@ def test_radar_early_fraud_warnings_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.early_fraud_warnings.list({"limit": 3}) @@ -8703,7 +8703,7 @@ def test_radar_early_fraud_warnings_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.early_fraud_warnings.retrieve("issfr_xxxxxxxxxxxxx") @@ -8733,7 +8733,7 @@ def test_radar_value_list_items_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_list_items.delete("rsli_xxxxxxxxxxxxx") @@ -8767,7 +8767,7 @@ def test_radar_value_list_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_list_items.list( @@ -8802,7 +8802,7 @@ def test_radar_value_list_items_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_list_items.retrieve("rsli_xxxxxxxxxxxxx") @@ -8836,7 +8836,7 @@ def test_radar_value_list_items_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_list_items.create( @@ -8872,7 +8872,7 @@ def test_radar_value_lists_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_lists.delete("rsl_xxxxxxxxxxxxx") @@ -8903,7 +8903,7 @@ def test_radar_value_lists_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_lists.list({"limit": 3}) @@ -8933,7 +8933,7 @@ def test_radar_value_lists_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_lists.retrieve("rsl_xxxxxxxxxxxxx") @@ -8968,7 +8968,7 @@ def test_radar_value_lists_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_lists.create( @@ -9009,7 +9009,7 @@ def test_radar_value_lists_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.radar.value_lists.update( @@ -9043,7 +9043,7 @@ def test_refunds_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.refunds.cancel("re_xxxxxxxxxxxxx") @@ -9072,7 +9072,7 @@ def test_refunds_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.refunds.list({"limit": 3}) @@ -9100,7 +9100,7 @@ def test_refunds_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.refunds.retrieve("re_xxxxxxxxxxxxx") @@ -9129,7 +9129,7 @@ def test_refunds_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.refunds.create({"charge": "ch_xxxxxxxxxxxxx"}) @@ -9162,7 +9162,7 @@ def test_refunds_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.refunds.update( @@ -9197,7 +9197,7 @@ def test_reporting_report_runs_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reporting.report_runs.list({"limit": 3}) @@ -9227,7 +9227,7 @@ def test_reporting_report_runs_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reporting.report_runs.retrieve("frr_xxxxxxxxxxxxx") @@ -9264,7 +9264,7 @@ def test_reporting_report_runs_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reporting.report_runs.create( @@ -9303,7 +9303,7 @@ def test_reporting_report_types_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reporting.report_types.list() @@ -9333,7 +9333,7 @@ def test_reporting_report_types_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reporting.report_types.retrieve("balance.summary.1") @@ -9363,7 +9363,7 @@ def test_reviews_approve_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reviews.approve("prv_xxxxxxxxxxxxx") @@ -9392,7 +9392,7 @@ def test_reviews_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reviews.list({"limit": 3}) @@ -9420,7 +9420,7 @@ def test_reviews_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.reviews.retrieve("prv_xxxxxxxxxxxxx") @@ -9454,7 +9454,7 @@ def test_setup_attempts_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_attempts.list({"limit": 3, "setup_intent": "si_xyz"}) @@ -9484,7 +9484,7 @@ def test_setup_intents_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.cancel("seti_xxxxxxxxxxxxx") @@ -9518,7 +9518,7 @@ def test_setup_intents_confirm_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.confirm( @@ -9551,7 +9551,7 @@ def test_setup_intents_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.list({"limit": 3}) @@ -9581,7 +9581,7 @@ def test_setup_intents_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.retrieve("seti_xxxxxxxxxxxxx") @@ -9612,7 +9612,7 @@ def test_setup_intents_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.create({"payment_method_types": ["card"]}) @@ -9647,7 +9647,7 @@ def test_setup_intents_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.update( @@ -9681,7 +9681,7 @@ def test_setup_intents_verify_microdeposits_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.verify_microdeposits("seti_xxxxxxxxxxxxx") @@ -9715,7 +9715,7 @@ def test_setup_intents_verify_microdeposits_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.setup_intents.verify_microdeposits( @@ -9749,7 +9749,7 @@ def test_shipping_rates_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.shipping_rates.list() @@ -9780,7 +9780,7 @@ def test_shipping_rates_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.shipping_rates.list({"limit": 3}) @@ -9810,7 +9810,7 @@ def test_shipping_rates_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.shipping_rates.retrieve("shr_xxxxxxxxxxxxx") @@ -9845,7 +9845,7 @@ def test_shipping_rates_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.shipping_rates.create( @@ -9887,7 +9887,7 @@ def test_shipping_rates_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.shipping_rates.create( @@ -9928,7 +9928,7 @@ def test_shipping_rates_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.shipping_rates.update( @@ -9963,7 +9963,7 @@ def test_sigma_scheduled_query_runs_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.sigma.scheduled_query_runs.list({"limit": 3}) @@ -9993,7 +9993,7 @@ def test_sigma_scheduled_query_runs_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.sigma.scheduled_query_runs.retrieve("sqr_xxxxxxxxxxxxx") @@ -10021,7 +10021,7 @@ def test_sources_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.sources.retrieve("src_xxxxxxxxxxxxx") @@ -10049,7 +10049,7 @@ def test_sources_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.sources.retrieve("src_xxxxxxxxxxxxx") @@ -10081,7 +10081,7 @@ def test_sources_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.sources.update( @@ -10115,7 +10115,7 @@ def test_subscription_items_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_items.delete("si_xxxxxxxxxxxxx") @@ -10146,7 +10146,7 @@ def test_subscription_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_items.list({"subscription": "sub_xxxxxxxxxxxxx"}) @@ -10176,7 +10176,7 @@ def test_subscription_items_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_items.retrieve("si_xxxxxxxxxxxxx") @@ -10211,7 +10211,7 @@ def test_subscription_items_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_items.create( @@ -10252,7 +10252,7 @@ def test_subscription_items_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_items.update( @@ -10290,7 +10290,7 @@ def test_subscription_items_usage_record_summaries_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_items.usage_record_summaries.list( @@ -10328,7 +10328,7 @@ def test_subscription_items_usage_records_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_items.usage_records.create( @@ -10362,7 +10362,7 @@ def test_subscription_schedules_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_schedules.cancel("sub_sched_xxxxxxxxxxxxx") @@ -10393,7 +10393,7 @@ def test_subscription_schedules_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_schedules.list({"limit": 3}) @@ -10423,7 +10423,7 @@ def test_subscription_schedules_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_schedules.retrieve("sub_sched_xxxxxxxxxxxxx") @@ -10464,7 +10464,7 @@ def test_subscription_schedules_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_schedules.create( @@ -10513,7 +10513,7 @@ def test_subscription_schedules_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_schedules.update( @@ -10547,7 +10547,7 @@ def test_subscription_schedules_release_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscription_schedules.release("sub_sched_xxxxxxxxxxxxx") @@ -10577,7 +10577,7 @@ def test_subscriptions_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscriptions.cancel("sub_xxxxxxxxxxxxx") @@ -10607,7 +10607,7 @@ def test_subscriptions_discount_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscriptions.delete_discount("sub_xyz") @@ -10636,7 +10636,7 @@ def test_subscriptions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscriptions.list({"limit": 3}) @@ -10666,7 +10666,7 @@ def test_subscriptions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscriptions.retrieve("sub_xxxxxxxxxxxxx") @@ -10700,7 +10700,7 @@ def test_subscriptions_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscriptions.create( @@ -10740,7 +10740,7 @@ def test_subscriptions_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscriptions.update( @@ -10777,7 +10777,7 @@ def test_subscriptions_search_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.subscriptions.search( @@ -10811,7 +10811,7 @@ def test_tax_calculations_line_items_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.calculations.line_items.list("xxx") @@ -10855,7 +10855,7 @@ def test_tax_calculations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.calculations.create( @@ -10900,7 +10900,7 @@ def test_tax_codes_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax_codes.list({"limit": 3}) @@ -10928,7 +10928,7 @@ def test_tax_codes_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax_codes.retrieve("txcd_xxxxxxxxxxxxx") @@ -10957,7 +10957,7 @@ def test_tax_rates_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax_rates.list({"limit": 3}) @@ -10985,7 +10985,7 @@ def test_tax_rates_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax_rates.retrieve("txr_xxxxxxxxxxxxx") @@ -11020,7 +11020,7 @@ def test_tax_rates_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax_rates.create( @@ -11061,7 +11061,7 @@ def test_tax_rates_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax_rates.update( @@ -11096,7 +11096,7 @@ def test_tax_registrations_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.registrations.list({"status": "all"}) @@ -11131,7 +11131,7 @@ def test_tax_registrations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.registrations.create( @@ -11172,7 +11172,7 @@ def test_tax_registrations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.registrations.update( @@ -11204,7 +11204,7 @@ def test_tax_settings_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.settings.retrieve() @@ -11233,7 +11233,7 @@ def test_tax_settings_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.settings.update({"defaults": {"tax_code": "txcd_10000000"}}) @@ -11268,7 +11268,7 @@ def test_tax_transactions_create_from_calculation_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tax.transactions.create_from_calculation( @@ -11304,7 +11304,7 @@ def test_terminal_configurations_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.delete("uc_123") @@ -11334,7 +11334,7 @@ def test_terminal_configurations_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.delete("tmc_xxxxxxxxxxxxx") @@ -11364,7 +11364,7 @@ def test_terminal_configurations_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.list() @@ -11394,7 +11394,7 @@ def test_terminal_configurations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.retrieve("uc_123") @@ -11425,7 +11425,7 @@ def test_terminal_configurations_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.list({"limit": 3}) @@ -11455,7 +11455,7 @@ def test_terminal_configurations_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.retrieve("tmc_xxxxxxxxxxxxx") @@ -11485,7 +11485,7 @@ def test_terminal_configurations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.create() @@ -11519,7 +11519,7 @@ def test_terminal_configurations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.update( @@ -11556,7 +11556,7 @@ def test_terminal_configurations_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.create( @@ -11595,7 +11595,7 @@ def test_terminal_configurations_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.configurations.update( @@ -11629,7 +11629,7 @@ def test_terminal_connection_tokens_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.connection_tokens.create() @@ -11659,7 +11659,7 @@ def test_terminal_locations_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.locations.delete("tml_xxxxxxxxxxxxx") @@ -11690,7 +11690,7 @@ def test_terminal_locations_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.locations.list({"limit": 3}) @@ -11720,7 +11720,7 @@ def test_terminal_locations_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.locations.retrieve("tml_xxxxxxxxxxxxx") @@ -11760,7 +11760,7 @@ def test_terminal_locations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.locations.create( @@ -11806,7 +11806,7 @@ def test_terminal_locations_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.locations.update( @@ -11840,7 +11840,7 @@ def test_terminal_readers_cancel_action_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.cancel_action("tmr_xxxxxxxxxxxxx") @@ -11870,7 +11870,7 @@ def test_terminal_readers_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.delete("tmr_xxxxxxxxxxxxx") @@ -11901,7 +11901,7 @@ def test_terminal_readers_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.list({"limit": 3}) @@ -11931,7 +11931,7 @@ def test_terminal_readers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.retrieve("tmr_xxxxxxxxxxxxx") @@ -11966,7 +11966,7 @@ def test_terminal_readers_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.create( @@ -12007,7 +12007,7 @@ def test_terminal_readers_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.update( @@ -12045,7 +12045,7 @@ def test_terminal_readers_process_payment_intent_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.process_payment_intent( @@ -12084,7 +12084,7 @@ def test_terminal_readers_process_setup_intent_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.terminal.readers.process_setup_intent( @@ -12126,7 +12126,7 @@ def test_test_helpers_customers_fund_cash_balance_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.customers.fund_cash_balance( @@ -12199,7 +12199,7 @@ def test_test_helpers_issuing_authorizations_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.capture( @@ -12272,7 +12272,7 @@ def test_test_helpers_issuing_authorizations_expire_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.expire( @@ -12309,7 +12309,7 @@ def test_test_helpers_issuing_authorizations_increment_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.increment( @@ -12369,7 +12369,7 @@ def test_test_helpers_issuing_authorizations_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.create( @@ -12431,7 +12431,7 @@ def test_test_helpers_issuing_authorizations_reverse_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.authorizations.reverse( @@ -12465,7 +12465,7 @@ def test_test_helpers_issuing_cards_shipping_deliver_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.cards.deliver_card("card_123") @@ -12495,7 +12495,7 @@ def test_test_helpers_issuing_cards_shipping_fail_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.cards.fail_card("card_123") @@ -12525,7 +12525,7 @@ def test_test_helpers_issuing_cards_shipping_return_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.cards.return_card("card_123") @@ -12555,7 +12555,7 @@ def test_test_helpers_issuing_cards_shipping_ship_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.cards.ship_card("card_123") @@ -12634,7 +12634,7 @@ def test_test_helpers_issuing_transactions_create_force_capture_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.transactions.create_force_capture( @@ -12764,7 +12764,7 @@ def test_test_helpers_issuing_transactions_create_unlinked_refund_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.transactions.create_unlinked_refund( @@ -12849,7 +12849,7 @@ def test_test_helpers_issuing_transactions_refund_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.issuing.transactions.refund( @@ -12883,7 +12883,7 @@ def test_test_helpers_refunds_expire_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.refunds.expire("re_123") @@ -12917,7 +12917,7 @@ def test_test_helpers_test_clocks_advance_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.advance( @@ -12955,7 +12955,7 @@ def test_test_helpers_test_clocks_advance_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.advance( @@ -12989,7 +12989,7 @@ def test_test_helpers_test_clocks_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.delete("clock_xyz") @@ -13019,7 +13019,7 @@ def test_test_helpers_test_clocks_delete_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.delete("clock_xxxxxxxxxxxxx") @@ -13049,7 +13049,7 @@ def test_test_helpers_test_clocks_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.list() @@ -13079,7 +13079,7 @@ def test_test_helpers_test_clocks_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.retrieve("clock_xyz") @@ -13110,7 +13110,7 @@ def test_test_helpers_test_clocks_get_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.list({"limit": 3}) @@ -13140,7 +13140,7 @@ def test_test_helpers_test_clocks_get_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.retrieve("clock_xxxxxxxxxxxxx") @@ -13174,7 +13174,7 @@ def test_test_helpers_test_clocks_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.create( @@ -13211,7 +13211,7 @@ def test_test_helpers_test_clocks_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.test_clocks.create({"frozen_time": 1577836800}) @@ -13246,7 +13246,7 @@ def test_test_helpers_treasury_inbound_transfers_fail_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.inbound_transfers.fail( @@ -13282,7 +13282,7 @@ def test_test_helpers_treasury_inbound_transfers_return_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.inbound_transfers.return_inbound_transfer( @@ -13314,7 +13314,7 @@ def test_test_helpers_treasury_inbound_transfers_succeed_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.inbound_transfers.succeed("ibt_123") @@ -13344,7 +13344,7 @@ def test_test_helpers_treasury_outbound_transfers_fail_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.outbound_transfers.fail("obt_123") @@ -13374,7 +13374,7 @@ def test_test_helpers_treasury_outbound_transfers_post_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.outbound_transfers.post("obt_123") @@ -13408,7 +13408,7 @@ def test_test_helpers_treasury_outbound_transfers_return_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.outbound_transfers.return_outbound_transfer( @@ -13448,7 +13448,7 @@ def test_test_helpers_treasury_received_credits_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.received_credits.create( @@ -13492,7 +13492,7 @@ def test_test_helpers_treasury_received_debits_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.test_helpers.treasury.received_debits.create( @@ -13528,7 +13528,7 @@ def test_tokens_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tokens.retrieve("tok_xxxx") @@ -13564,7 +13564,7 @@ def test_tokens_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tokens.create( @@ -13612,7 +13612,7 @@ def test_tokens_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tokens.create( @@ -13653,7 +13653,7 @@ def test_tokens_post_3_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tokens.create({"pii": {"id_number": "000000000"}}) @@ -13688,7 +13688,7 @@ def test_tokens_post_4_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tokens.create( @@ -13731,7 +13731,7 @@ def test_tokens_post_5_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tokens.create( @@ -13769,7 +13769,7 @@ def test_tokens_post_6_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.tokens.create({"cvc_update": {"cvc": "123"}}) @@ -13800,7 +13800,7 @@ def test_topups_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.topups.cancel("tu_xxxxxxxxxxxxx") @@ -13829,7 +13829,7 @@ def test_topups_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.topups.list({"limit": 3}) @@ -13857,7 +13857,7 @@ def test_topups_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.topups.retrieve("tu_xxxxxxxxxxxxx") @@ -13891,7 +13891,7 @@ def test_topups_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.topups.create( @@ -13931,7 +13931,7 @@ def test_topups_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.topups.update( @@ -13964,7 +13964,7 @@ def test_transfers_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.list({"limit": 3}) @@ -13992,7 +13992,7 @@ def test_transfers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.retrieve("tr_xxxxxxxxxxxxx") @@ -14026,7 +14026,7 @@ def test_transfers_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.create( @@ -14066,7 +14066,7 @@ def test_transfers_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.update( @@ -14104,7 +14104,7 @@ def test_transfers_reversals_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.reversals.list( @@ -14140,7 +14140,7 @@ def test_transfers_reversals_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.reversals.retrieve( @@ -14177,7 +14177,7 @@ def test_transfers_reversals_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.reversals.create( @@ -14216,7 +14216,7 @@ def test_transfers_reversals_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.transfers.reversals.update( @@ -14255,7 +14255,7 @@ def test_treasury_credit_reversals_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.credit_reversals.list( @@ -14290,7 +14290,7 @@ def test_treasury_credit_reversals_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.credit_reversals.retrieve("credrev_xxxxxxxxxxxxx") @@ -14323,7 +14323,7 @@ def test_treasury_credit_reversals_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.credit_reversals.create( @@ -14362,7 +14362,7 @@ def test_treasury_debit_reversals_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.debit_reversals.list( @@ -14397,7 +14397,7 @@ def test_treasury_debit_reversals_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.debit_reversals.retrieve("debrev_xxxxxxxxxxxxx") @@ -14428,7 +14428,7 @@ def test_treasury_debit_reversals_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.debit_reversals.create( @@ -14463,7 +14463,7 @@ def test_treasury_financial_accounts_features_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.financial_accounts.features.list("fa_xxxxxxxxxxxxx") @@ -14494,7 +14494,7 @@ def test_treasury_financial_accounts_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.financial_accounts.list({"limit": 3}) @@ -14524,7 +14524,7 @@ def test_treasury_financial_accounts_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.financial_accounts.retrieve("fa_xxxxxxxxxxxxx") @@ -14558,7 +14558,7 @@ def test_treasury_financial_accounts_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.financial_accounts.create( @@ -14598,7 +14598,7 @@ def test_treasury_financial_accounts_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.financial_accounts.update( @@ -14632,7 +14632,7 @@ def test_treasury_inbound_transfers_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.inbound_transfers.cancel("ibt_xxxxxxxxxxxxx") @@ -14666,7 +14666,7 @@ def test_treasury_inbound_transfers_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.inbound_transfers.list( @@ -14701,7 +14701,7 @@ def test_treasury_inbound_transfers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.inbound_transfers.retrieve("ibt_xxxxxxxxxxxxx") @@ -14738,7 +14738,7 @@ def test_treasury_inbound_transfers_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.inbound_transfers.create( @@ -14777,7 +14777,7 @@ def test_treasury_outbound_payments_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_payments.cancel("bot_xxxxxxxxxxxxx") @@ -14811,7 +14811,7 @@ def test_treasury_outbound_payments_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_payments.list( @@ -14846,7 +14846,7 @@ def test_treasury_outbound_payments_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_payments.retrieve("bot_xxxxxxxxxxxxx") @@ -14884,7 +14884,7 @@ def test_treasury_outbound_payments_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_payments.create( @@ -14924,7 +14924,7 @@ def test_treasury_outbound_transfers_cancel_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_transfers.cancel("obt_xxxxxxxxxxxxx") @@ -14958,7 +14958,7 @@ def test_treasury_outbound_transfers_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_transfers.list( @@ -14993,7 +14993,7 @@ def test_treasury_outbound_transfers_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_transfers.retrieve("obt_xxxxxxxxxxxxx") @@ -15030,7 +15030,7 @@ def test_treasury_outbound_transfers_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.outbound_transfers.create( @@ -15073,7 +15073,7 @@ def test_treasury_received_credits_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.received_credits.list( @@ -15108,7 +15108,7 @@ def test_treasury_received_credits_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.received_credits.retrieve("rc_xxxxxxxxxxxxx") @@ -15142,7 +15142,7 @@ def test_treasury_received_debits_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.received_debits.list( @@ -15177,7 +15177,7 @@ def test_treasury_received_debits_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.received_debits.retrieve("rd_xxxxxxxxxxxxx") @@ -15211,7 +15211,7 @@ def test_treasury_transaction_entries_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.transaction_entries.list( @@ -15246,7 +15246,7 @@ def test_treasury_transaction_entries_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.transaction_entries.retrieve("trxne_xxxxxxxxxxxxx") @@ -15280,7 +15280,7 @@ def test_treasury_transactions_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.transactions.list( @@ -15315,7 +15315,7 @@ def test_treasury_transactions_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.treasury.transactions.retrieve("trxn_xxxxxxxxxxxxx") @@ -15345,7 +15345,7 @@ def test_webhook_endpoints_delete_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.webhook_endpoints.delete("we_xxxxxxxxxxxxx") @@ -15376,7 +15376,7 @@ def test_webhook_endpoints_get_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.webhook_endpoints.list({"limit": 3}) @@ -15406,7 +15406,7 @@ def test_webhook_endpoints_get_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.webhook_endpoints.retrieve("we_xxxxxxxxxxxxx") @@ -15440,7 +15440,7 @@ def test_webhook_endpoints_post_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.webhook_endpoints.create( @@ -15480,7 +15480,7 @@ def test_webhook_endpoints_post_2_service( ) client = StripeClient( "sk_test_123", - http_client=undefined.get_mock_http_client(), + http_client=http_client_mock.get_mock_http_client(), ) client.webhook_endpoints.update(